Create multiple svelte-pages with this template. Relies on default template https://github.com/sveltejs/template
npx degit Tom-Siegel/multi-page-svelte
const inputs = [
"main", //string defaults to input: src/[name].js and output: public/build/[name].js
{
input: "src/second.js",
output: { file: "public/build/second.js", name: "second" },
css: "public/build/second.css",
}, //object for setting more specific values for input and output of roolup configuration
];
npm run build
npm run dev
Or
npm run start
Open your browser url: localhost:5000
main.js --> http://localhost:5000/index.html
second.js --> http://localhost:5000/second.html