1 Star 7 Fork 2

遛弯大爷/React_Redux-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
tangzk 提交于 2016-05-13 15:43 . 积分商城示例
'use strict';
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: './src/mallEntry',
output: {
path: path.join(__dirname, '/js'),
filename: 'mall.js',
publicPath: '/js/'
},
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{
test: /.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015', 'react']
}
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
}),
new webpack.DefinePlugin({
//'process.env.NODE_ENV': '"development"',
'process.env.NODE_ENV': '"production"',
__DEBUG__: JSON.stringify('true')
}),
new webpack.optimize.UglifyJsPlugin({
mangle: {
//except: ['$', 'exports', 'require']
}
})
],
clearBeforeBuild: true
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/327630285/React_Redux-example.git
git@gitee.com:327630285/React_Redux-example.git
327630285
React_Redux-example
React_Redux-example
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385