This is a template for use Svelte with TailwindCSS, using Rollup as a bundler.
npx degit Raidez/svelte-tailwind-rollup svelte-app
npm install
to install dependenciesnpm run dev
to start a livereload server on localhost:10001 (by default)Rollup is a bundler, it take all files in src/ folder and compile it to the public/ folder and serve it through localhost:8080. It use the file rollup.config.js to make all it's works, feel free to adjust as you want.
All files inside public/ are statics, put your images and another statics ressources here.
You can run the command npm run build
, to minify all rollup output, it's the purpose for production.