-
Notifications
You must be signed in to change notification settings - Fork 119
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
Update template to Webpack 5 for better experience #36
Conversation
Co-authored-by: Ben McCann <[email protected]>
I've been thinking about
Currently, components don't output css in devmode, and there's no global imported css, so by default there won't be any ^ That is also because we are using |
Make HMR work for global.css Use mini-css-extract-plugin instead of style-loader, it supports HMR Get rid of the need to have bundle.css by prebuilding, making it empty or what else
I find it sad that there's 18k weekly downloads of
svelte-loader
and these users don't get the best possible svelte experience on Webpack. This template doesn't show a good example of how this could be done either, and it is the most important one, because it is official.This fixes the situation by updating
svelte-loader
from master, which has Webpack 5 and HMR support and also updating everything else to the most recent version. I believe starters don't want to use stale deps.Issues: Fixes #12, Fixes #31, Fixes #34
PRs: Fixes #33, Fixes #24, Fixes #21, Fixes #28