1 Star 0 Fork 60

开源中国/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()
]
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/teamsInNanjing/g2.git
git@gitee.com:teamsInNanjing/g2.git
teamsInNanjing
g2
G2
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385