vue-cli-plugin-windicss
vue-cli-plugin-windicss copied to clipboard
It does't work anyway.
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?
That's my problem.
That's my problem.
hey, How did you solve it
Hey guys, can you please provide some more details on what exactly the issue is and happy to look into it further.
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
},