From b8460bbdb2ab247d5bfb408d68c7414d394d63af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 1 Jun 2022 15:23:08 +0200 Subject: [PATCH] Reduce file size of js build --- webpack.config.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 303dfed2..1a81dafd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,13 +12,10 @@ Encore .addEntry('myep', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep.js') .addEntry('groups-calculator', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/groups-calculator.js') .addStyleEntry('rte', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/rte.scss') - .addExternals({ - jquery: 'jQuery', - }) .splitEntryChunks() .enableSingleRuntimeChunk() .enableSassLoader() - .enableVueLoader() + .enableVueLoader(() => {}, { runtimeCompilerBuild: false }) .enableVersioning(Encore.isProduction()) .enableSourceMaps(!Encore.isProduction()) .cleanupOutputBeforeBuild() @@ -75,7 +72,7 @@ Encore .enableSingleRuntimeChunk() .splitEntryChunks() .enableSassLoader() - .enableVueLoader() + .enableVueLoader(() => {}, { runtimeCompilerBuild: false }) .autoProvidejQuery() .enableSourceMaps(!Encore.isProduction()) .cleanupOutputBeforeBuild()