Skip to content

Commit

Permalink
fix: importLoaders for webpack prod to ensure sass gets called for cs…
Browse files Browse the repository at this point in the history
…s-module `composes:` expressions
  • Loading branch information
dmatchley committed Dec 20, 2017
1 parent 4a9d2fa commit 821fc05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ module.exports = {
loader: require.resolve("css-loader"),
options: {
modules: true,
importLoaders: 1,
importLoaders: 3,
minimize: true,
sourceMap: shouldUseSourceMap,
localIdentName: "[name]__[local]__[hash:base64:5]"
Expand Down Expand Up @@ -362,7 +362,7 @@ module.exports = {
{
loader: require.resolve("css-loader"),
options: {
importLoaders: 1,
importLoaders: 3,
minimize: true,
sourceMap: shouldUseSourceMap
}
Expand Down
11 changes: 3 additions & 8 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@tandem.ly/react-scripts",
"version": "1.0.18",
"description": "Tandem.ly Custom Configuration and scripts for Create React App.",
"description":
"Tandem.ly Custom Configuration and scripts for Create React App.",
"repository": "Tandemly/create-react-app",
"license": "MIT",
"engines": {
Expand All @@ -10,13 +11,7 @@
"bugs": {
"url": "https://github.com/Tandemly/create-react-app/issues"
},
"files": [
"bin",
"config",
"scripts",
"template",
"utils"
],
"files": ["bin", "config", "scripts", "template", "utils"],
"bin": {
"react-scripts": "./bin/react-scripts.js"
},
Expand Down

0 comments on commit 821fc05

Please sign in to comment.