https://gitlab.com/hatiers/lstclean.git
Tip revision: a74862fb741564a88fa4ad4651965c0362c50e30 authored by arnaudbey on 01 March 2023, 15:58:44 UTC
WIP
WIP
Tip revision: a74862f
webpack.config.js
var Encore = require('@symfony/webpack-encore');
Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/')
.setPublicPath('/build')
.addEntry('js/main', './assets/js/main.js')
.addEntry('js/article', './assets/js/article.js')
.addEntry('js/test', './assets/js/test.js')
.addEntry('js/testCharts', './assets/js/testCharts.js')
.addEntry('js/testCytoscape', './assets/js/cytoscape-entry.js')
.addEntry('js/cytoscape-entries', './assets/js/cytoscape-entries.js')
.addEntry('js/lexicalEntryChartImport', './assets/js/lexicalEntryChartImport.js')
.addEntry('js/filterEntryTab', './assets/js/filterEntryTab.js')
.addEntry('js/sortLemmas', './assets/js/sortLemmas.js')
.addEntry('js/sortCollocations', './assets/js/sortCollocations.js')
.addEntry('js/fonctions', './assets/js/fonctions.js')
.addStyleEntry('css/style', './assets/css/style.css')
.enableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.enableBuildNotifications()
.enableSourceMaps(!Encore.isProduction())
.enableVersioning()
.createSharedEntry('js/vendor', './assets/js/vendor.js')
.autoProvidejQuery()
;
module.exports = Encore.getWebpackConfig();
