You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a2418aa
Browse filesBrowse the repository at this point in the historyBrowse files
feat(create-webpack-app): use webpack's native CSS and HTML support in init templates (#4833)
Replace css-loader, style-loader, vue-style-loader and mini-css-extract-plugin
with `experiments.css`, and html-webpack-plugin and html-loader with
`experiments.html`, where `index.html` becomes the entry point.
Both experiments default to "auto" since webpack 5.109, so the templates only
declare them when the auto detection would turn them off: a PostCSS rule for
`.css` files, and the Vue template, where VueLoaderPlugin clones every non-vue
rule with a catch-all `resource: () => true` matcher before webpack resolves the
defaults, which makes the auto detection see a loader for `.css` and `.html`.
The Vue template also needs `experimentalInlineMatchResource` in vue-loader,
required with `experiments.css`.
The "Do you want to extract CSS into separate files?" prompt is gone, native CSS
always emits separate files, and the `htmlWebpackPlugin` answer is now `html`.
0 commit comments