Skip to content

Commit 0acb5b9

Browse files
committed
➕ adds production version loader for LESS
1 parent 2be8da4 commit 0acb5b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react-scripts/config/customizers.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ module.exports = {
3535
test: /\.less$/,
3636
loader: "style!css!postcss!less"
3737
}
38+
},
39+
getProd: function () {
40+
return {
41+
test: /\.less/,
42+
loader: ExtractTextPlugin.extract('style', 'css!postcss!less')
43+
}
3844
}
3945
},
4046
'CSS_MODULES': {

0 commit comments

Comments
 (0)