david-plugge / tailwindcss-extend

MIT License
16 stars 1 forks source link

Add Vite as prereq. Or, support Webpack? #1

Open monarchwadia opened 1 year ago

monarchwadia commented 1 year ago

Thanks for the great work!

For folks who are using create-react-app and webpack, it would be very nice to make it super clear that Vite is a prereq.

Otherwise, maybe support webpack?

david-plugge commented 1 year ago

Vite isn´t needed! You can use the cli: tailwindcss-extend -w -p **/styles/*.css This watches all css files inside the styles folder for changes. Combine it with the npm package npm-run-all to start multiple processes:

{
  "scripts": {
    "dev": "run-p dev:*", // run all scripts starting with 'dev:' in parallel
    "dev:tailwindcss-extend": "tailwindcss-extend -w -p **/styles/*.css",
    "dev:react": "whatever you need"
  },
  "devDependencies": {
    "npm-run-all": "latest"
  }
}
david-plugge commented 11 months ago

@monarchwadia is my suggestion working for you?