Skip to content

Rename index.html to index.svelte #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PaulMaly opened this issue Aug 14, 2018 · 3 comments
Closed

Rename index.html to index.svelte #2

PaulMaly opened this issue Aug 14, 2018 · 3 comments

Comments

@PaulMaly
Copy link

Seems, if we want to use Svelte components in different environments we should use a custom extension to prevent any conflicts with existing webpack/rollup configs.

@EmilTholin
Copy link
Owner

EmilTholin commented Aug 20, 2018

Hi @PaulMaly!

Yeah, it's a bit of a hassle. If we change to .svelte it will stop working for others which have a working configuration for .html.

I'm subscribing to the Convention for packaged components to export uncompiled templates issue and will implement that when something generic is implemented.

@PaulMaly
Copy link
Author

Yeah, it's a bit of a hassle. If we change to .svelte it will stop working for others which have a working configuration for .html.

I think it's very simple to fix that )))

test: /\.(html|svelte)$/,

@EmilTholin
Copy link
Owner

I changed to the .svelte file extension in 2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants