Advertisement
Guest User

Untitled

a guest
May 26th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. var Encore = require('@symfony/webpack-encore');
  2.  
  3. Encore.enableSassLoader();
  4.  
  5. Encore
  6. // directory where compiled assets will be stored
  7. .setOutputPath('public/build/')
  8. // public path used by the web server to access the output path
  9. .setPublicPath('/build')
  10.  
  11. .addEntry('css/app', './assets/scss/app.scss')
  12. .addEntry('js/app', './assets/js/app.js')
  13. .addEntry('js/stepper', './assets/js/stepper.js')
  14. .addEntry('js/carFollowEdit', './assets/js/carFollowEdit.js')
  15. .addEntry('js/usedPartsStatistic', './assets/js/usedPartsStatistic.js')
  16. .addEntry('js/failureStatistic', './assets/js/failureStatistic.js')
  17. .addEntry('js/carStatistic', './assets/js/carStatistic.js')
  18. .addEntry('js/contractGenerator', './assets/js/contractGenerator.js')
  19. .addEntry('js/factureGenerator', './assets/js/factureGenerator.js')
  20.  
  21. .cleanupOutputBeforeBuild()
  22. .enableSourceMaps(!Encore.isProduction())
  23. ;
  24.  
  25. module.exports = Encore.getWebpackConfig();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement