-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.mix.js
38 lines (36 loc) · 1.49 KB
/
webpack.mix.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
let mix = require('laravel-mix')
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/js/bundles/spec.js', 'public/js')
.js('resources/js/bundles/app.js', 'public/js')
.js('resources/js/bundles/api.js', 'public/js')
.js('resources/js/bundles/endpoints.js', 'public/js')
.extract([
'axios',
'buefy',
'vue',
'vue-affix',
'vue-clipboard2'
])
.sass('resources/sass/app.scss', 'public/css')
.sass('resources/sass/pdf.scss', 'public/css')
.combine([
'node_modules/buefy/dist/buefy.css',
'node_modules/prismjs/themes/prism.css',
'node_modules/prism-themes/themes/prism-vs.css',
'node_modules/swagger-ui/dist/swagger-ui.css'
], 'public/css/vendor.css')
.copy('resources/brand/icon/oparl-icon.png', 'public/images/favicon.png')
.copy('resources/brand/wortmarke/oparl-wortmarke-rgb.svg', 'public/images/logos/oparl.svg')
.copy('resources/img/oparl-icon-dev-slackbot.png', 'public/images/logos/oparl-slackbot.png')
.copy('resources/img/cfg.svg', 'public/images/logos')
.copy('resources/img/okf.svg', 'public/images/logos')
.version()