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

26 lines (14 loc) 849 B
# Vue CLI Plugin: Tailwind / Rollup ESM Component (Starter) ## Features 1. Tailwind - Allows Tailwind syntax to be used in component styles via `shadowLookup` experiment setting in tailwind config. 2. PurgeCSS - Runs only in `build`. Let's all Tailwind classes load for the `serve` so that all the classes will be available during development. Useful for allowing the developer add / change classes via Web Inspector on the fly. 3. Rollup Bundler - To bundle components as ESM. ## How to use? - Prompt will ask for the component name in PascalCase (example: MyComponent or SOMEComponent) ## ToDo - Make sure this plugin can be invokable repeadetly (ie dont add multiple import statements in App.vue) - Make sure dist added in npm and .gitrepo is not when published - Fix dist name with a prefix (ie. should be bsu-overlay not bsuoverlay)