You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
763 B
27 lines
763 B
var Encore = require('@symfony/webpack-encore');
|
|
|
|
Encore
|
|
.setOutputPath('public/build/')
|
|
.setPublicPath('/build')
|
|
.cleanupOutputBeforeBuild()
|
|
|
|
// read main.js -> output as web/build/chamilo.js
|
|
.addEntry('chamilo', './assets/js/main.js')
|
|
// read main.scss -> output as web/build/chamilo_style.css
|
|
.addStyleEntry('chamilo_style', './assets/css/main.scss')
|
|
|
|
// enable features!
|
|
.enableSassLoader()
|
|
.autoProvidejQuery()
|
|
.enableReactPreset()
|
|
.enableSourceMaps(!Encore.isProduction())
|
|
.autoProvideVariables({
|
|
$: 'jquery',
|
|
jQuery: 'jquery',
|
|
'window.jQuery': 'jquery'
|
|
})
|
|
//.enableVersioning() // hashed filenames (e.g. main.abc123.js)
|
|
;
|
|
|
|
module.exports = Encore.getWebpackConfig();
|
|
|
|
|