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

It does't work anyway. #23

Open
protogenesis opened this issue May 19, 2021 · 4 comments
Open

It does't work anyway. #23

protogenesis opened this issue May 19, 2021 · 4 comments

Comments

@protogenesis
Copy link

protogenesis commented May 19, 2021

Hi, I tried a couple of hours trying to find the problem, but I failed.
version:
@vue/cli 4.4.6

In my vue.config.js:

// vue.config.js
module.exports = {
  pluginOptions: {
    windicss: {
      // see https://github.com/windicss/vite-plugin-windicss/blob/main/packages/plugin-utils/src/options.ts
      scan: {
        dirs: ['./'],
        exclude: ['node_modules', '.git'],
      },
    },
  },
}

also tried:

// vue.config.js
module.exports = {
  pluginOptions: {
    windicss: {
      // see https://github.com/windicss/vite-plugin-windicss/blob/main/packages/plugin-utils/src/options.ts
      scan: {
        dirs: ['src', 'public', 'views'], // because my html files are in the views directory.
        exclude: ['node_modules', '.git'],
        include: ['views'] // I also tried to add it at here.
      },
    },
  },
}

Do I need to import windicss manually?

@protogenesis
Copy link
Author

That's my problem.

@ChenWeihua123
Copy link

That's my problem.

hey, How did you solve it

@harlan-zw harlan-zw reopened this Oct 23, 2021
@harlan-zw
Copy link
Member

Hey guys, can you please provide some more details on what exactly the issue is and happy to look into it further.

@ChenWeihua123
Copy link

well, Maybe there's something wrong with my webpack pluginOptions configuration.
i removed webpack pluginOptions.windicss, and i do nothing, just windi.config file, it works fine

The difference is that i set pluginOptions.windicss

pluginOptions: {
    windicss: { }, //  just an empty dict
  },

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

3 participants