template icon indicating copy to clipboard operation
template copied to clipboard

Generated links to ...css and ... js file need a "." at the beginning

Open michael-spengler opened this issue 4 years ago • 1 comments

Reproduce the error by:

npx degit sveltejs/template my-svelte-project  
cd my-svelte-project  
npm i 
npm run build

open the index.html file in the generated dist folder and see that the generated hrefs to the ... css and js files lack a "." at the beginning.

michael-spengler avatar Jun 23 '21 00:06 michael-spengler

If by this you mean that the paths in https://github.com/sveltejs/template/blob/master/public/index.html should be relative - it's intentional that they are absolute, which allows the app to be used in as an SPA. If you need them to be relative, you can just edit them accordingly.

Conduitry avatar Jun 23 '21 00:06 Conduitry