chore: tweaks & fixes (#9109)

* fix: correct bundle analyzer settings

* fix: svelte config fix

* fix: CopyWebpackPlugin fixed ignore

* chore: tabs fix
This commit is contained in:
Martin Guillon
2020-12-23 20:04:22 +01:00
committed by GitHub
parent de5f67f7c8
commit 68f3e728a6
3 changed files with 21 additions and 10 deletions

View File

@ -17,7 +17,6 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
// resolve .svelte files
// the order is reversed because we are using prepend!
config.resolve.extensions.prepend('.svelte').prepend(`.${platform}.svelte`);
// add a rule for .svelte files
config.module
.rule('svelte')
@ -30,7 +29,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
return {
...options,
dev: !production,
preprocess: [getSvelteConfigPreprocessor(), svelteNativePreprocessor()],
preprocess: getSvelteConfigPreprocessor(),
hotReload: !production,
hotOptions: {
injectCss: false,