diff options
| author | Haishan <[email protected]> | 2019-06-12 19:31:01 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-06-20 00:37:39 +0800 |
| commit | c291147668171ec122fa58cd71b57c0dfd733513 (patch) | |
| tree | bfaf376441ad0e94c621484dbe8892d6d982395e | |
| parent | d3e5d9f0143b2981b5be38fdec294d02efa48ee5 (diff) | |
update css-loader usage
| -rw-r--r-- | webpack.config.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js index 1492bd6..d7e29ba 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -84,10 +84,11 @@ const loaders = { cssModule: { loader: 'css-loader', options: { - modules: true, - localIdentName: isDev - ? '[path]_[name]_[local]_[hash:base64:5]' - : '[hash:base64:10]' + modules: { + localIdentName: isDev + ? '[path]_[name]_[local]_[hash:base64:5]' + : '[hash:base64:10]' + } } }, postcss: { |
