Skip to content
This repository has been archived by the owner on Nov 4, 2018. It is now read-only.

修改 Ant Design 的样式变量 #142

Open
zjyfantasy opened this issue Jan 13, 2017 · 0 comments
Open

修改 Ant Design 的样式变量 #142

zjyfantasy opened this issue Jan 13, 2017 · 0 comments

Comments

@zjyfantasy
Copy link

官方示例修改样式变量如下
**const lessToJs = require('less-vars-to-js');

const themer = lessToJs(fs.readFileSync(path.join(__dirname, './alipay-theme/theme.less'), 'utf8'));
webpackConfig.module.loaders.forEach(function(loader) {
if (loader.test.toString() === '/\.less$/') {
loader.loader =
loader.loader.replace('"modifyVars":{}', '"modifyVars":' + JSON.stringify(themer));
}
});**
我想知道fswebpackConfig两个模块是从哪导入的

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant