Benjy Cui
9 years ago
3 changed files with 10 additions and 23 deletions
@ -1,22 +0,0 @@ |
|||
var webpack = require('webpack'); |
|||
var config = require('./webpack.config'); |
|||
|
|||
delete config.devtool; |
|||
config.entry.demo = [config.entry.demo[0]]; |
|||
|
|||
config.plugins = [config.plugins[0], new webpack.optimize.UglifyJsPlugin({ |
|||
sourceMap: false, |
|||
output: { |
|||
ascii_only: true |
|||
} |
|||
})]; |
|||
|
|||
config.module.loaders.forEach(function(loader) { |
|||
if (loader.loader === 'babel') { |
|||
// remove preset hmre
|
|||
loader.query.presets = loader.query.presets.slice(0, 3); |
|||
} |
|||
return loader; |
|||
}); |
|||
|
|||
module.exports = config; |
@ -0,0 +1,6 @@ |
|||
module.exports = function(webpackConfig) { |
|||
webpackConfig.entry = { |
|||
index: './site/entry/index.jsx', |
|||
}; |
|||
return webpackConfig; |
|||
}; |
Loading…
Reference in new issue