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