1 Star 0 Fork 115

沐瑶 / F2

forked from antv / F2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 703 Bytes
一键复制 编辑 原始数据 按行查看 历史
simaQ 提交于 2018-08-08 13:34 . chore: configuration update.
const webpack = require('webpack');
const resolve = require('path').resolve;
module.exports = {
entry: {
f2: './src/index.js',
'f2-simple': './src/index-simple.js',
'f2-all': './src/index-all.js'
},
output: {
filename: '[name].js',
library: 'F2',
libraryTarget: 'umd',
path: resolve(__dirname, 'build/')
},
module: {
rules: [
{
test: /\.js$/,
// exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
babelrc: true
}
}
}
]
},
plugins: [
new webpack.NoEmitOnErrorsPlugin(),
new webpack.optimize.AggressiveMergingPlugin()
]
};
JavaScript
1
https://gitee.com/muyao_vip/f2.git
git@gitee.com:muyao_vip/f2.git
muyao_vip
f2
F2
master

搜索帮助