caisse-bliss/webpack.config.js

31 lines
824 B
JavaScript
Raw Normal View History

2018-03-13 15:05:52 +01:00
var Encore = require('@symfony/webpack-encore');
Encore
2018-04-04 16:25:25 +02:00
// the project directory where all compiled assets will be stored
.setOutputPath('web/build/')
2018-03-15 16:57:30 +01:00
// the public path used by the web server to access the previous directory
.setPublicPath('/build')
2018-04-04 16:25:25 +02:00
// will create web/build/app.js and web/build/app.css
.addEntry('app', './assets/js/app.js')
// allow sass/scss files to be processed
2018-03-15 16:57:30 +01:00
.enableSassLoader()
2018-03-13 15:05:52 +01:00
2018-04-04 16:25:25 +02:00
// allow legacy applications to use $/jQuery as a global variable
2018-03-15 16:57:30 +01:00
.autoProvidejQuery()
2018-04-04 16:25:25 +02:00
// .enableSourceMaps(!Encore.isProduction())
// empty the outputPath dir before each build
.cleanupOutputBeforeBuild()
2018-05-08 13:24:02 +02:00
// .addEntry('')
// show OS notifications when builds finish/fail
.enableBuildNotifications()
2018-03-13 15:05:52 +01:00
;
2018-04-04 16:25:25 +02:00
// export the final configuration
2018-03-13 15:05:52 +01:00
module.exports = Encore.getWebpackConfig();