diff --git a/webpack.config.js b/webpack.config.js index ae763d4..2a56b58 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,8 +15,6 @@ module.exports = { output: { library: `[name]`, filename: `[name].bundle.js`, - // Must match module.exports.serve.dev.publicPath or the demo page will show broken images - publicPath: `/dist/` }, optimization: { @@ -44,6 +42,19 @@ module.exports = { module: { rules: [ + { + test: /\.css$/, + use: [ + `style-loader`, + { + loader: 'css-loader', + options: { + modules: true, + localIdentName: '[name]__[local]___[hash:base64:5]' + } + } + ] + }, { test: /\.(jpe?g|png|gif)$/i, use: [