1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-07-10 01:56:20 +02:00
Files
phpapprentice/webpack.config.js
Andrew Davis e17a687d99 Wrote two chapters for web section
Also, tweaked build to allow for nested folders
2019-03-13 20:33:51 -05:00

19 lines
481 B
JavaScript

var Encore = require('@symfony/webpack-encore');
Encore
.setOutputPath('.build')
.setPublicPath('/')
.addEntry('js/site', './assets/js/site.js')
.addStyleEntry('css/site', './assets/css/site.css')
.enablePostCssLoader()
.configureBabel(function (babel) {
babel.plugins.push(['prismjs', {
"languages": ["php", "http"],
"css": false,
}]);
})
.enableVersioning();
;
module.exports = Encore.getWebpackConfig();