Svelte Rollup template with file name hashing and HTML minification
The svelte-rollup-template is an enhanced version of the official Svelte Rollup template. It adds the ability to hash the CSS and JS file names during production builds. This template addresses a GitHub issue related to file name hashing. The project utilizes PostHTML to process compiled assets after the build stage.
To use the svelte-rollup-template, follow these steps:
degit.npx degit sveltejs/template svelte-app
cd svelte-app
npm install
npm run dev
Visit http://localhost:3000 to view the app.
Customize the port number in the rollup.config.js file if needed.
Build the app for production.
npm run build
The svelte-rollup-template enhances the official Svelte Rollup template by adding file name hashing for CSS and JS bundles during production builds. It also utilizes PostHTML for processing compiled assets after the build stage. This template provides a solution for the GitHub issue related to file name hashing.