From 3e08fa55008df9ef9427f274bc0f36ba75795a9d Mon Sep 17 00:00:00 2001 From: DD Liu Date: Wed, 31 Jul 2019 13:41:20 -0400 Subject: [PATCH] Test revert css loader update --- package.json | 2 +- webpack.config.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 58c6f103..b8ac5d51 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": "^1.6.11", - "css-loader": "3.1.0", + "css-loader": "1.0.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 6d2d8a45..e352299f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -30,11 +30,10 @@ const base = { }, { loader: 'css-loader', options: { + modules: true, importLoaders: 1, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - }, - localsConvention: 'camelCase' + localIdentName: '[name]_[local]_[hash:base64:5]', + camelCase: true } }, { loader: 'postcss-loader',