Skip to content
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

请问在引入了全局less之后如何开启vscode的变量提示?谢谢 #55

Open
PineSongCN opened this issue May 20, 2022 · 0 comments

Comments

@PineSongCN
Copy link

PineSongCN commented May 20, 2022

通过这种方式引入了全局变量,然后在开发时候不会提示。

  chainWebpack: (config) => {
    config.module
      .rule('less')
      .oneOfs.values()
      .forEach((item) => {
        item
          .use('style-resources-loader')
          .loader('style-resources-loader')
          .options({ patterns: './src/themes/variable.less' })
          .end();
      });
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant