1 Star 0 Fork 59

fnet / G2

forked from antv / G2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 943 Bytes
一键复制 编辑 原始数据 按行查看 历史
绝云 提交于 2017-09-01 11:14 . version coexist
const webpack = require('webpack');
const resolve = require('path').resolve;
module.exports = {
devtool: 'cheap-source-map',
entry: {
g2: './index.js'
},
output: {
filename: '[name].js',
library: 'G2_3',
libraryTarget: 'umd',
path: resolve(__dirname, 'build/')
},
module: {
rules: [
{
test: /\.js$/,
// exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
babelrc: false,
plugins: [
'transform-remove-strict-mode'
],
presets: [
[
'es2015', {
loose: true,
modules: false
}
],
'stage-0'
]
}
}
}
]
},
plugins: [
new webpack.NoEmitOnErrorsPlugin(),
new webpack.optimize.AggressiveMergingPlugin()
]
};
JavaScript
1
https://gitee.com/fnet/g2.git
git@gitee.com:fnet/g2.git
fnet
g2
G2
master

搜索帮助