UNPKG

vue-cli-plugin-tailwind-rollup-esm-component

Version:

Vue CLI 3.0 plugin (with Tailwind, PurgeCSS and Rollup) to use as a component starter

12 lines (11 loc) 359 B
module.exports = function(api) { return { getPostCSSConfig() { const isExternalConfig = api.generator.originalPkg.postcss ? false : true // PostCSS config is in package.json. Need to extract it and at the end delete postcss config from package.json if (!isExternalConfig) { delete api.generator.pkg.postcss } } } }