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

View File

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