Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Encore = require('@symfony/webpack-encore');
- Encore.enableSassLoader();
- Encore
- // directory where compiled assets will be stored
- .setOutputPath('public/build/')
- // public path used by the web server to access the output path
- .setPublicPath('/build')
- .addEntry('css/app', './assets/scss/app.scss')
- .addEntry('js/app', './assets/js/app.js')
- .addEntry('js/stepper', './assets/js/stepper.js')
- .addEntry('js/carFollowEdit', './assets/js/carFollowEdit.js')
- .addEntry('js/usedPartsStatistic', './assets/js/usedPartsStatistic.js')
- .addEntry('js/failureStatistic', './assets/js/failureStatistic.js')
- .addEntry('js/carStatistic', './assets/js/carStatistic.js')
- .addEntry('js/contractGenerator', './assets/js/contractGenerator.js')
- .addEntry('js/factureGenerator', './assets/js/factureGenerator.js')
- .cleanupOutputBeforeBuild()
- .enableSourceMaps(!Encore.isProduction())
- ;
- module.exports = Encore.getWebpackConfig();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement