WIP Debootstrapify
This commit is contained in:
+7
-6
@@ -1,13 +1,14 @@
|
||||
const Encore = require('@symfony/webpack-encore');
|
||||
|
||||
if (!Encore.isRuntimeEnvironmentConfigured()) {
|
||||
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
|
||||
}
|
||||
|
||||
// Create webpack config for ext:ep_theme
|
||||
Encore
|
||||
.setOutputPath('./public/typo3conf/ext/ep_theme/Resources/Public/')
|
||||
.setPublicPath('/typo3conf/ext/ep_theme/Resources/Public/')
|
||||
.addEntry('main', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/main.js')
|
||||
// .addEntry('boarderweek', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/boarderweek.js')
|
||||
// .addEntry('snowzone', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/snowzone.js')
|
||||
// .addEntry('unichamp', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/unichamp.js')
|
||||
.addStyleEntry('rte', './public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/rte.scss')
|
||||
.addExternals({
|
||||
jquery: 'jQuery',
|
||||
@@ -16,7 +17,7 @@ Encore
|
||||
.enableSingleRuntimeChunk()
|
||||
.enableSassLoader()
|
||||
.enableVueLoader()
|
||||
.enableVersioning()
|
||||
.enableVersioning(Encore.isProduction())
|
||||
.enableSourceMaps(!Encore.isProduction())
|
||||
.cleanupOutputBeforeBuild()
|
||||
.enablePostCssLoader()
|
||||
@@ -26,8 +27,8 @@ Encore
|
||||
{ from: './node_modules/leaflet/dist/images', to: 'images/[name].[ext]' },
|
||||
])
|
||||
.configureFilenames({
|
||||
js: 'js/[name].[contenthash].js',
|
||||
css: 'css/[name].[contenthash].css',
|
||||
js: 'js/[name].js',
|
||||
css: 'css/[name].css',
|
||||
})
|
||||
.configureImageRule({
|
||||
filename: 'images/[name][ext]',
|
||||
|
||||
Reference in New Issue
Block a user