didi / mand-mobile

💰 A mobile UI toolkit, based on Vue.js 2, designed for financial scenarios.
https://didi.github.io/mand-mobile
Apache License 2.0
3.46k stars 772 forks source link

Vue cli 3中如何定制主题颜色? #212

Closed gaozhe3321 closed 6 years ago

gaozhe3321 commented 6 years ago

Vue cli 3中如何定制主题颜色? 按照文档中的操作以后stylus-loader会报错

ParseError: D:\Projects\mandmobile\src\style\theme.styl:4:226
   1| // style-loader: Adds some css to the DOM by adding a <style> tag
   2|
   3| // load the styles
   4| var content = require("!!../../node_modules/css-loader/index.js??ref--11-oneOf-3-1!../../node_modules/postcss-loader/lib/index.js??ref--11-oneOf-3-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-3-3!./theme.styl");
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
   5| if(typeof content === 'string') content = [[module.id, content, '']];
   6| if(content.locals) module.exports = content.locals;
   7| // add the styles to the DOM

expected "indent", got ";"
xxyan0205 commented 6 years ago

https://github.com/mand-mobile/vue-cli3-example/tree/custom-theme

gaozhe3321 commented 6 years ago

https://github.com/mand-mobile/vue-cli3-example/tree/custom-theme

根据这个例子已经搞定