|
- const Encore = require('@symfony/webpack-encore');
-
-
-
- if (!Encore.isRuntimeEnvironmentConfigured()) {
- Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
- }
-
- const path = require('path');
-
- Encore
-
- .setOutputPath('public/build/')
-
- .setPublicPath('/build')
-
-
- .enableSassLoader()
- .addAliases({
- 'core-js': path.join(__dirname, 'node_modules/core-js'),
- 'jquery': path.join(__dirname, 'node_modules/jquery/src/jquery'),
- 'jquery-ui': path.join(__dirname, 'node_modules/jquery-ui-dist/jquery-ui'),
- 'adminlte-js': path.join(__dirname, 'node_modules/admin-lte/dist/js/adminlte.min.js'),
- 'adminlte-css': path.join(__dirname, 'node_modules/admin-lte/build/scss/adminlte.scss'),
- 'fontawesome-css': path.join(__dirname, 'node_modules/admin-lte/plugins/fontawesome-free/css/all.css'),
- 'adminlte-plugin': path.join(__dirname, 'node_modules/admin-lte/plugins/'),
- 'toastr': path.join(__dirname, 'node_modules/toastr'),
-
-
-
-
- })
-
-
-
- .addEntry('adminlte-common', './Lc/SovBundle/Resources/assets/app/adminlte/common/app.common.js')
- .addEntry('adminlte-index', './Lc/SovBundle/Resources/assets/app/adminlte/index/app.index.js')
- .addEntry('adminlte-form', './Lc/SovBundle/Resources/assets/app/adminlte/form/app.form.js')
- .addEntry('adminlte-sort', './Lc/SovBundle/Resources/assets/app/adminlte/sort/app.sort.js')
- .addEntry('adminlte-field-filemanager', './Lc/SovBundle/Resources/assets/app/adminlte/field/filemanager/app.filemanager.js')
- .addEntry('adminlte-field-collection', './Lc/SovBundle/Resources/assets/app/adminlte/field/collection/app.collection.js')
- .addEntry('carac-switch-merchant', './Lc/CaracoleBundle/Resources/assets/app/switchmerchant/app.switchmerchant.js')
- .addEntry('carac-common', './Lc/CaracoleBundle/Resources/assets/app/adminlte/common/app.common.js')
-
-
- .enableStimulusBridge('./assets/controllers.json')
-
-
- .splitEntryChunks()
-
-
-
- .enableSingleRuntimeChunk()
-
-
-
- .cleanupOutputBeforeBuild()
- .enableBuildNotifications()
- .enableSourceMaps(!Encore.isProduction())
-
- .enableVersioning(Encore.isProduction())
-
- .configureBabel((config) => {
- config.plugins.push('@babel/plugin-proposal-class-properties');
- })
-
-
- .configureBabelPresetEnv((config) => {
- config.useBuiltIns = 'usage';
- config.corejs = 3;
- })
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ;
-
- module.exports = Encore.getWebpackConfig();
|