Set purge inside "tailwind.config.js"
Closed this issue · 1 comments
YangAi commented
Hello, Thanks for the plugin! It save me a lot of time. But I realized the purgecss will affect framework outside tailwind, like "vuetify".
Can I use the purge setting directly in the tailwind.config.js
, do something like this?
// tailwind.config.js
module.exports = {
// purge: [],
purge: [
'./public/**/*.html',
'./src/**/*.vue',
],
theme: {
extend: {},
},
variants: {},
plugins: [],
};
forsartis commented
Hello, yes you can do that. But you also need to remove 'vue-cli-plugin-tailwind/purgecss': {},
in your postcss.config.js
to disable this plugin purgecss and only use tailwinds internal one.