Skip to content

Commit

Permalink
Update customizers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-magakian authored Jan 12, 2017
1 parent 7367b6d commit 1a4f7bd
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions packages/react-scripts/config/customizers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ module.exports = {
},
'SASS_MODULES': {
toArray: 'loaders',
fileRegex: /\.(scss|sass)/,
fileRegex: /\.(mscss|msass)/,
getDev: function () {
return {
test: /(\.scss|\.sass)$/,
test: /(\.mscss|\.msass)$/,
loader: `style!css${cssModulesDev}!postcss!sass`
}
},
getProd: function () {
return {
test: /(\.scss|\.sass)$/,
test: /(\.mscss|\.msass)$/,
loader: ExtractTextPlugin.extract('style', `css${cssModulesProd}!postcss!sass`)
}
}
Expand All @@ -65,16 +65,16 @@ module.exports = {
},
'LESS_MODULES': {
toArray: 'loaders',
fileRegex: /\.less$/,
fileRegex: /\.mless$/,
getDev: function () {
return {
test: /\.less$/,
test: /\.mless$/,
loader: `style!css${cssModulesDev}!postcss!less`
}
},
getProd: function () {
return {
test: /\.less/,
test: /\.mless/,
loader: ExtractTextPlugin.extract('style', `css${cssModulesProd}!postcss!less`)
}
}
Expand All @@ -100,17 +100,33 @@ module.exports = {
fileRegex: /\.styl$/,
getDev: function () {
return {
test: /\.styl/,
test: /\.mstyl/,
loader: `style!css${cssModulesDev}!postcss!stylus`
}
},
getProd: function () {
return {
test: /\.styl/,
test: /\.mstyl/,
loader: ExtractTextPlugin.extract('style', `css${cssModulesProd}!postcss!stylus`)
}
}
},
'EXTENSION_CSS_MODULES': {
toArray: 'loaders',
fileRegex: /\.mcss/,
getDev: function () {
return {
test: /\.mcss$/,
loader: `style!css${cssModulesDev}!postcss`
}
},
getProd: function () {
return {
test: /\.mcss$/,
loader: `style!css${cssModulesProd}!postcss`
}
}
},
'CSS_MODULES': {
config: {
dev: `style!css${cssModulesDev}!postcss`,
Expand Down

0 comments on commit 1a4f7bd

Please sign in to comment.