2 Star 0 Fork 1

未定义 / echarts-gl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 752 Bytes
一键复制 编辑 原始数据 按行查看 历史
pissang 提交于 2017-12-20 01:04 . Add linesGL
var PROD = process.argv.indexOf('-p') >= 0;
var webpack = require('webpack');
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
module.exports = {
plugins: [
// new webpack.optimize.ModuleConcatenationPlugin(),
new CaseSensitivePathsPlugin({}),
new webpack.DefinePlugin({
'typeof __DEV__': JSON.stringify('boolean'),
__DEV__: PROD ? false : true
})
],
entry: {
'echarts-gl': __dirname + '/index.js'
},
output: {
libraryTarget: 'umd',
library: ['echarts-gl'],
path: __dirname + '/dist',
filename: PROD ? '[name].min.js' : '[name].js'
},
externals: {
'echarts/lib/echarts': 'echarts'
}
};
NodeJS
1
https://gitee.com/loyalove/echarts-gl.git
git@gitee.com:loyalove/echarts-gl.git
loyalove
echarts-gl
echarts-gl
master

搜索帮助