Skip to content

Commit a7600d5

Browse files
author
Hashem Khalifa
committed
fix new css loader options
1 parent 6f9d423 commit a7600d5

File tree

3 files changed

+35
-33
lines changed

3 files changed

+35
-33
lines changed

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,60 +52,60 @@
5252
"babel-core": "7.0.0-bridge.0"
5353
},
5454
"devDependencies": {
55-
"@babel/core": "7.4.5",
56-
"@babel/plugin-proposal-class-properties": "7.4.4",
55+
"@babel/core": "7.5.5",
56+
"@babel/plugin-proposal-class-properties": "7.5.5",
5757
"@babel/plugin-proposal-decorators": "7.4.4",
58-
"@babel/plugin-proposal-export-namespace-from": "7.2.0",
59-
"@babel/plugin-proposal-function-sent": "7.2.0",
58+
"@babel/plugin-proposal-export-namespace-from": "7.5.2",
59+
"@babel/plugin-proposal-function-sent": "7.5.0",
6060
"@babel/plugin-proposal-json-strings": "7.2.0",
6161
"@babel/plugin-proposal-numeric-separator": "7.2.0",
6262
"@babel/plugin-proposal-throw-expressions": "7.2.0",
6363
"@babel/plugin-syntax-dynamic-import": "7.2.0",
6464
"@babel/plugin-syntax-import-meta": "7.2.0",
65-
"@babel/plugin-transform-runtime": "7.4.4",
65+
"@babel/plugin-transform-runtime": "7.5.5",
6666
"@babel/polyfill": "7.4.4",
67-
"@babel/preset-env": "7.4.5",
68-
"@babel/register": "7.4.4",
69-
"@babel/runtime": "7.4.5",
67+
"@babel/preset-env": "7.5.5",
68+
"@babel/register": "7.5.5",
69+
"@babel/runtime": "7.5.5",
7070
"babel-core": "7.0.0-bridge.0",
7171
"babel-eslint": "10.0.2",
7272
"babel-jest": "24.8.0",
7373
"babel-loader": "8.0.6",
7474
"babel-plugin-lodash": "3.3.4",
75-
"browserslist": "4.6.3",
75+
"browserslist": "4.6.6",
7676
"clean-webpack-plugin": "3.0.0",
7777
"cross-env": "5.2.0",
78-
"css-loader": "3.0.0",
78+
"css-loader": "3.1.0",
7979
"enzyme": "3.10.0",
80-
"eslint": "6.0.1",
81-
"eslint-config-airbnb-base": "13.1.0",
82-
"eslint-config-prettier": "5.1.0",
83-
"eslint-loader": "2.1.2",
84-
"eslint-plugin-import": "2.18.0",
85-
"eslint-plugin-jest": "22.7.1",
80+
"eslint": "6.1.0",
81+
"eslint-config-airbnb-base": "13.2.0",
82+
"eslint-config-prettier": "6.0.0",
83+
"eslint-loader": "2.2.1",
84+
"eslint-plugin-import": "2.18.2",
85+
"eslint-plugin-jest": "22.14.1",
8686
"eslint-plugin-prettier": "3.1.0",
87-
"eslint-watch": "5.1.2",
88-
"file-loader": "4.0.0",
87+
"eslint-watch": "6.0.0",
88+
"file-loader": "4.1.0",
8989
"html-webpack-plugin": "3.2.0",
90-
"husky": "2.5.0",
90+
"husky": "3.0.2",
9191
"identity-obj-proxy": "3.0.0",
9292
"jest": "24.8.0",
9393
"jest-css-modules-transform": "2.5.0",
9494
"jest-enzyme": "7.0.2",
9595
"jest-fetch-mock": "2.1.2",
9696
"jsdom": "15.1.1",
97-
"lint-staged": "8.2.1",
98-
"mini-css-extract-plugin": "0.7.0",
97+
"lint-staged": "9.2.1",
98+
"mini-css-extract-plugin": "0.8.0",
9999
"node-sass": "4.12.0",
100-
"optimize-css-assets-webpack-plugin": "5.0.1",
100+
"optimize-css-assets-webpack-plugin": "5.0.3",
101101
"prettier": "1.18.2",
102102
"pretty-quick": "1.11.1",
103103
"sass-loader": "7.1.0",
104-
"script-ext-html-webpack-plugin": "2.1.3",
104+
"script-ext-html-webpack-plugin": "2.1.4",
105105
"style-loader": "0.23.1",
106-
"terser-webpack-plugin": "1.3.0",
107-
"webpack": "4.35.0",
108-
"webpack-cli": "3.3.5",
106+
"terser-webpack-plugin": "1.4.1",
107+
"webpack": "4.39.1",
108+
"webpack-cli": "3.3.6",
109109
"webpack-dev-server": "3.7.2",
110110
"webpack-merge": "4.2.1"
111111
}

webpack/webpack.dev.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ module.exports = {
1818
{
1919
loader: 'css-loader',
2020
options: {
21-
sourceMap: true,
22-
modules: true,
23-
camelCase: true,
24-
localIdentName: '[local]___[hash:base64:5]',
21+
sourceMap: false,
22+
localsConvention: 'camelCase',
23+
modules: {
24+
localIdentName: '[local]___[hash:base64:5]',
25+
},
2526
},
2627
},
2728
'sass-loader',

webpack/webpack.prod.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ module.exports = {
5757
loader: 'css-loader',
5858
options: {
5959
sourceMap: false,
60-
modules: true,
61-
camelCase: true,
62-
localIdentName: '[local]___[hash:base64:5]',
60+
localsConvention: 'camelCase',
61+
modules: {
62+
localIdentName: '[local]___[hash:base64:5]',
63+
},
6364
},
6465
},
6566
'sass-loader',

0 commit comments

Comments
 (0)