Commit 04b67402 by baiguangyao

.

parents 385e7af6 aadb61f0
......@@ -118,6 +118,14 @@ module.exports = function(webpackEnv) {
sourceMap: isEnvProduction && shouldUseSourceMap,
},
});
if(preProcessor == 'sass-loader' && !cssOptions.modules){
loaders.push({
loader: require.resolve('sass-resources-loader'),
options: {
resources: [require.resolve('../src/styles/variable.scss')]
}
})
}
}
return loaders;
};
......
......@@ -134,7 +134,8 @@
]
},
"devDependencies": {
"babel-plugin-import": "^1.11.0"
"babel-plugin-import": "^1.11.0",
"sass-resources-loader": "^2.0.0"
},
"theme": {
"brand-primary": "green",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment