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('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') .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') .addStyleEntry('rte', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/rte.scss')
.addExternals({
jquery: 'jQuery',
})
.splitEntryChunks() .splitEntryChunks()
.enableSingleRuntimeChunk() .enableSingleRuntimeChunk()
.enableSassLoader() .enableSassLoader()
.enableVueLoader() .enableVueLoader(() => {}, { runtimeCompilerBuild: false })
.enableVersioning(Encore.isProduction()) .enableVersioning(Encore.isProduction())
.enableSourceMaps(!Encore.isProduction()) .enableSourceMaps(!Encore.isProduction())
.cleanupOutputBeforeBuild() .cleanupOutputBeforeBuild()
@@ -75,7 +72,7 @@ Encore
.enableSingleRuntimeChunk() .enableSingleRuntimeChunk()
.splitEntryChunks() .splitEntryChunks()
.enableSassLoader() .enableSassLoader()
.enableVueLoader() .enableVueLoader(() => {}, { runtimeCompilerBuild: false })
.autoProvidejQuery() .autoProvidejQuery()
.enableSourceMaps(!Encore.isProduction()) .enableSourceMaps(!Encore.isProduction())
.cleanupOutputBeforeBuild() .cleanupOutputBeforeBuild()