forked from ezsystems/ezplatform-ee-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
25 lines (22 loc) · 962 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const Encore = require('@symfony/webpack-encore');
const path = require('path');
const getEzConfig = require('./ez.webpack.config.js');
const eZConfigManager = require('./ez.webpack.config.manager.js');
const eZConfig = getEzConfig(Encore);
const customConfigs = require('./ez.webpack.custom.configs.js');
Encore.reset();
Encore.setOutputPath('public/assets/build')
.setPublicPath('/assets/build')
.enableSassLoader()
.enableReactPreset()
.enableSingleRuntimeChunk();
Encore.addEntry('maison', [
path.resolve(__dirname, './assets/scss/maison/maison.scss'),
path.resolve(__dirname, './assets/js/carouselMenu.js'),
])
.addEntry('professionals', [
path.resolve(__dirname, './assets/scss/professionals/professionals.scss'),
path.resolve(__dirname, './assets/js/professionals/menu.js'),
]);
const projectConfig = Encore.getWebpackConfig();
module.exports = [ eZConfig, ...customConfigs, projectConfig ];