Improve: hide webpack output

This commit is contained in:
jas0ncn 2018-09-02 03:46:26 +08:00
parent 0accaa4982
commit 6d90543192
2 changed files with 6 additions and 5 deletions

View File

@ -27,16 +27,16 @@ module.exports = {
{ {
test: /\.scss$/, test: /\.scss$/,
loaders: [ loaders: [
'style-loader', 'style-loader',
{ loader: 'css-loader', options: { importLoaders: 1 } }, { loader: 'css-loader', options: { importLoaders: 1 } },
'sass-loader', 'sass-loader',
], ],
}, },
{ {
test: /\.(jpe?g|png|gif|svg)$/i, test: /\.(jpe?g|png|gif|svg)$/i,
loaders: [ loaders: [
'file-loader?hash=sha512&digest=hex&name=img/[hash].[ext]', 'file-loader?hash=sha512&digest=hex&name=img/[hash].[ext]',
'image-webpack-loader?bypassOnDebug&optipng.optimizationLevel=7&gifsicle.interlaced=false', 'image-webpack-loader?bypassOnDebug&optipng.optimizationLevel=7&gifsicle.interlaced=false',
], ],
}, },
], ],

View File

@ -13,6 +13,7 @@ module.exports = merge(commonConfig, {
], ],
devServer: { devServer: {
hot: true, // enable HMR on the server hot: true, // enable HMR on the server
noInfo: true,
}, },
devtool: 'cheap-module-eval-source-map', devtool: 'cheap-module-eval-source-map',
plugins: [ plugins: [