forked from SchulIT/icc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
48 lines (42 loc) · 1.73 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const Encore = require('@symfony/webpack-encore');
const CopyPlugin = require('copy-webpack-plugin');
const GlobImporter = require('node-sass-glob-importer');
Encore
.setOutputPath('public/build/')
.setPublicPath('/build')
.addEntry('app', './assets/js/app.js')
.addEntry('collection', './assets/js/collection.js')
.addEntry('editor', './assets/js/editor.js')
.addEntry('timetable', './assets/css/timetable.scss')
.addEntry('picker', './assets/js/picker.js')
.addEntry('modal', './assets/js/modal.js')
.addEntry('appointments', './assets/js/appointments.js')
.addEntry('message-downloads', './assets/js/message-downloads.js')
.addEntry('message-overview', './assets/js/message-overview.js')
.addEntry('zipper', './assets/js/zipper.js')
.addEntry('display', './assets/js/display.js')
.addEntry('book', './assets/js/book.js')
.addEntry('entry', './assets/js/entry.js')
.addEntry('export-book', './assets/js/export-book.js')
.addEntry('close-confirm', './assets/js/close-confirm.js')
.addStyleEntry('simple', './vendor/schulit/common-bundle/Resources/assets/css/simple.scss')
.addStyleEntry('signin', './vendor/schulit/common-bundle/Resources/assets/css/signin.scss')
.disableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.enableSourceMaps(!Encore.isProduction())
.enableSassLoader(function(options) {
options.sassOptions.importer = GlobImporter();
})
.enablePostCssLoader()
.enableVueLoader()
.enableVersioning(Encore.isProduction())
.addLoader(
{
test: /bootstrap\.native/,
use: {
loader: 'bootstrap.native-loader'
}
}
)
;
module.exports = Encore.getWebpackConfig();