1 Star 0 Fork 0

foxflying/regexper-static

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
Jeff Avallone 提交于 2017-07-30 13:29 +08:00 . Adding babel-polyfill back into the build
var webpack = require('webpack'),
bourbon = require('bourbon'),
config = require('./config');
module.exports = {
devtool: 'source-map',
entry: {
'js/main.js': ['babel-polyfill', './src/js/main.js'],
'__discard__/css/main.css.js': './src/sass/main.scss',
'__discard__/css/svg.css.js': './src/sass/svg.scss'
},
output: {
path: config.buildRoot,
filename: '[name]'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
compress: {
warnings: false
}
})
],
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: require.resolve('snapsvg'),
loader: 'imports-loader?this=>window,fix=>module.exports=0'
},
{
test: /\.peg$/,
loader: require.resolve('./lib/canopy-loader')
},
{
test: /\.scss$/,
exclude: /node_modules/,
loaders: [
'file-loader?name=css/[name].css',
'extract-loader',
'css-loader',
'sass-loader?includePaths[]=' + bourbon.includePaths
]
}
]
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/foxflying/regexper-static.git
git@gitee.com:foxflying/regexper-static.git
foxflying
regexper-static
regexper-static
master

搜索帮助