Skip to content

Commit

Permalink
update yarn packages & update get_style_rule to handle css-loader@3.0…
Browse files Browse the repository at this point in the history
….0 (#2130)
  • Loading branch information
mmaloon authored and gauravtiwari committed Sep 18, 2019
1 parent 4107b26 commit 3c394fc
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 179 deletions.
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -23,20 +23,20 @@
"@babel/runtime": "^7.4.5",
"babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^2.2.0",
"babel-plugin-macros": "^2.5.0",
"babel-plugin-macros": "^2.6.1",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"compression-webpack-plugin": "^2.0.0",
"compression-webpack-plugin": "^3.0.0",
"core-js": "^3.1.3",
"css-loader": "^2.1.1",
"file-loader": "^3.0.1",
"css-loader": "^3.0.0",
"file-loader": "^4.0.0",
"flatted": "^2.0.0",
"glob": "^7.1.4",
"js-yaml": "^3.13.1",
"mini-css-extract-plugin": "^0.7.0",
"node-sass": "^4.12.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"path-complete-extname": "^1.0.0",
"pnp-webpack-plugin": "^1.4.3",
"pnp-webpack-plugin": "^1.5.0",
"postcss-flexbugs-fixes": "^4.1.0",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
Expand All @@ -46,9 +46,9 @@
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.3.0",
"webpack": "^4.32.2",
"webpack": "^4.34.0",
"webpack-assets-manifest": "^3.1.1",
"webpack-cli": "^3.3.2",
"webpack-cli": "^3.3.4",
"webpack-sources": "^1.3.0"
},
"devDependencies": {
Expand Down
5 changes: 3 additions & 2 deletions package/utils/get_style_rule.js
Expand Up @@ -21,8 +21,9 @@ const getStyleRule = (test, modules = false, preprocessors = []) => {
options: {
sourceMap: true,
importLoaders: 2,
localIdentName: '[name]__[local]___[hash:base64:5]',
modules
modules: modules ? {
localIdentName: '[name]__[local]___[hash:base64:5]'
} : false
}
},
{
Expand Down

0 comments on commit 3c394fc

Please sign in to comment.