1 Star 0 Fork 1

benbtx / D3-Es6

forked from 徐宇明 / D3-Es6 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.dll.config.js 881 Bytes
一键复制 编辑 原始数据 按行查看 历史
zzzznnnn 提交于 2017-11-24 19:30 . 新修改
/**
* Created by Administrator on 2017/7/3.
*/
var path = require('path'),webpack = require('webpack');
module.exports = {
entry: {
dll: ['babel-polyfill','d3','save-svg-as-png',"xlsx"]
},
output: {
path:path.join(__dirname,'./dist/js'),
// output.library 将会定义为 window.${output.library}
filename: '[name].bundle.js',
library: '[name]'
},
plugins: [
/* new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),*/
new webpack.DllPlugin({
//path 定义 manifest文件生成的位置 [name]的部分由entry的名字替换
path: path.join(__dirname, '[name]-manifest.json'),
//name dll bundle输出到那个全局变量上和 output.library 一样即可
name: '[name]'
})
]
};
1
https://gitee.com/benbtx/D3-Es6.git
git@gitee.com:benbtx/D3-Es6.git
benbtx
D3-Es6
D3-Es6
master

搜索帮助