mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user