vue-cli-plugin-windicss icon indicating copy to clipboard operation
vue-cli-plugin-windicss copied to clipboard

It does't work anyway.

Open protogenesis opened this issue 4 years ago • 4 comments
trafficstars

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 avatar May 19 '21 03:05 protogenesis

That's my problem.

protogenesis avatar May 19 '21 06:05 protogenesis

That's my problem.

hey, How did you solve it

ChenWeihua123 avatar Oct 22 '21 08:10 ChenWeihua123

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

harlan-zw avatar Oct 26 '21 02:10 harlan-zw

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
  },

ChenWeihua123 avatar Oct 26 '21 06:10 ChenWeihua123