-
Notifications
You must be signed in to change notification settings - Fork 4.7k
can not override config.styl globally #2127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @fengxinming , are you trying to change the default preset varibles? Can you try to override them in the |
@ludanxer I am going to develop a custom theme that base on const path = require('path');
// Theme API.
module.exports = (options, ctx) => {
const { themeConfig, siteConfig } = ctx;
const stylusConfig = siteConfig.stylus || {};
if (!Array.isArray(stylusConfig.import)) {
stylusConfig.import = [];
}
stylusConfig.import.unshift(
path.join(__dirname, 'styles', 'vue', '**', '*.styl')
);
siteConfig.stylus = stylusConfig; in that case, |
Use But it's somthing can be enhanced. See #2129 |
@meteorlxy 我主要想定制一套主题基于 |
See https://vuepress.vuejs.org/theme/writing-a-theme.html#directory-structure |
@meteorlxy 不错,这个方式也行,我之前没有看到。不过这个自定stylus参数覆盖先后顺序的问题可以看看。 |
@fengxinming I agree that In the meantime, did @meteorlxy help to solve your problem? |
Bug report
Steps to reproduce
What is expected?
initialized
$textColor
#2c3e50
is replaced with#000000
What is actually happening?
nothing happens
Other relevant information
look up code in file
@vuepress/core/lib/node/internal-plugins/palette/index.js
I propose to amend the 17th lines of code
The text was updated successfully, but these errors were encountered: