|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- const Encore = require('@symfony/webpack-encore');
-
-
-
- if (!Encore.isRuntimeEnvironmentConfigured()) {
- Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
- }
-
- Encore
-
- .setOutputPath('Resources/public/build/')
-
- .setPublicPath('/build')
-
-
- .enableSassLoader()
-
-
- .addEntry('backend-common', './Resources/assets/apps/backend/common/app.common.js')
-
-
-
-
- .splitEntryChunks()
-
-
-
- .enableSingleRuntimeChunk()
-
-
-
- .cleanupOutputBeforeBuild()
- .enableBuildNotifications()
- .enableSourceMaps(!Encore.isProduction())
-
- .enableVersioning(Encore.isProduction())
-
-
- .configureBabelPresetEnv((config) => {
- config.useBuiltIns = 'usage';
- config.corejs = 3;
- })
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ;
-
- module.exports = Encore.getWebpackConfig();
|