-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
28 lines (25 loc) · 1.03 KB
/
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
26
27
28
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
.addStyleEntry('training', [
path.resolve(__dirname, './assets/css/normalize.css'),
path.resolve(__dirname, './assets/css/bootstrap.min.css'),
path.resolve(__dirname, './assets/css/bootstrap-theme.css'),
path.resolve(__dirname, './assets/scss/style.scss') // Our custom styling
])
.addEntry('training-js', [
path.resolve(__dirname, './assets/js/bootstrap.min.js')
])
.autoProvidejQuery();
const projectConfig = Encore.getWebpackConfig();
module.exports = [ eZConfig, ...customConfigs, projectConfig ];