File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22
33// Export a function. Accept the base config as the only param.
4- module . exports = async ( { config, mode } ) => {
5-
4+ module . exports = async ( { config, mode} ) => {
65 // Make whatever fine-grained changes you need
76 config . module . rules . push ( {
87 test : / \. s c s s $ / ,
9- use : [ 'style-loader' , 'css-loader' , 'sass-loader' ] ,
10- include : path . resolve ( __dirname , '../' ) ,
8+ use : [
9+ 'style-loader' ,
10+ 'css-loader' ,
11+ 'sass-loader' ,
12+ // Load both momentum and project styles globally, to avoid manual import on every SASS module
13+ {
14+ loader : 'sass-resources-loader' ,
15+ options : {
16+ resources : [
17+ path . resolve ( __dirname , '../src/styles/index.scss' ) ,
18+ path . resolve ( __dirname , '../momentum-ui.scss' ) ,
19+ ] ,
20+ } ,
21+ } ,
22+ ] ,
1123 } ) ;
1224
1325 return config ;
You can’t perform that action at this time.
0 commit comments