Reduce file size of js build

This commit is contained in:
Björn Fromme
2022-06-01 15:23:08 +02:00
parent d99c2822bc
commit b8460bbdb2
+2 -5
View File
@@ -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()