Skip to content

Commit

Permalink
Enable CSS modules for browser-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangYiJiang committed Aug 10, 2019
1 parent 85f1976 commit cb24f4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion website/webpack/webpack.config.browser-warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,9 @@ module.exports = merge([
},
},

parts.loadCSS(),
parts.loadCSS({
options: {
modules: true,
},
}),
]);
4 changes: 4 additions & 0 deletions website/webpack/webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const commonConfig = merge([
// Disable performance hints since we use our own size reporter
hints: false,
},
optimization: {
// do not emit compiled assets that include errors
noEmitOnErrors: true,
},
},
parts.transpileJavascript({
include: parts.PATHS.src,
Expand Down
2 changes: 0 additions & 2 deletions website/webpack/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ const developmentConfig = merge([
// Waiting on: https://github.com/jantimon/html-webpack-plugin/issues/533
// { multiStep: true }
new webpack.HotModuleReplacementPlugin(),
// do not emit compiled assets that include errors
new webpack.NoEmitOnErrorsPlugin(),
// Caches compiled modules to disk to improve rebuild times
new HardSourceWebpackPlugin({
info: {
Expand Down

0 comments on commit cb24f4f

Please sign in to comment.