This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/webpack.config.js
2018-01-05 22:56:06 +00:00

21 lines
573 B
JavaScript

var Encore = require('@symfony/webpack-encore');
Encore
.setOutputPath('source/build/')
.setPublicPath('/build')
.cleanupOutputBeforeBuild()
.enableLessLoader()
.addEntry('js/site', './assets/js/main.js')
.addStyleEntry('css/site', './assets/less/main.less')
.enablePostCssLoader(function(options) {
options.config = {
path: 'config/postcss.config.js'
};
})
.enableSourceMaps(!Encore.isProduction())
.enableVersioning(false)
.enableBuildNotifications()
;
module.exports = Encore.getWebpackConfig();