Boilerplate for creating TailwindCSS Plugins from scratch.
- Using Parcel for bundling and dev-server.
- 2 Sample plugin provided for reference.
sample-plugin-with-params
sample-plugin-without-params
- You must installed
parcel-bundler
globally. Runnpm i -g parcel-bundler
oryarn global add parcel-bundler
if you haveyarn
. - Make sure you can run
parcel
in terminal. You should putparcel
inside yourPATH
environment variable (npm
andyarn
takes care of this).
- Clone/Download this repo.
- Install code dependencies. Run
npm install
oryarn install
if you preferyarn
overnpm
. - Start the development. Run
npm run dev
oryarn dev
. This will watchindex.html
file and other files referenced insideindex.js
file. - If you are finished the development and want to move into production then run
npm run prod
oryarn prod
. This will bundle all of the code, minify, and remove all unused code inside fromtailwindcss
dependencies.