From 4a575d381f12310bfd5d421feb1c70855585467f Mon Sep 17 00:00:00 2001 From: DD Liu Date: Tue, 6 Aug 2019 17:45:45 -0400 Subject: [PATCH] Update css loader version --- package.json | 2 +- webpack.config.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b9108499..0a29c10f 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "babel-preset-env": "^1.6.1", "babel-preset-react": "^6.22.0", "canvas-prebuilt": "^2.0.0-alpha.14", - "css-loader": "1.0.0", + "css-loader": "3.1.0", "enzyme": "^3.6.0", "enzyme-adapter-react-16": "^1.5.0", "eslint": "^4.4.1", diff --git a/webpack.config.js b/webpack.config.js index e352299f..f2e3895a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -30,10 +30,11 @@ const base = { }, { loader: 'css-loader', options: { - modules: true, + modules: { + localIdentName: '[name]_[local]_[hash:base64:5]' + }, importLoaders: 1, - localIdentName: '[name]_[local]_[hash:base64:5]', - camelCase: true + localsConvention: 'camelCase' } }, { loader: 'postcss-loader',