-
Notifications
You must be signed in to change notification settings - Fork 5
/
webpack.mix.js
25 lines (22 loc) · 1018 Bytes
/
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
let mix = require('laravel-mix');
mix.setPublicPath('assets');
mix.setResourceRoot('../');
require('laravel-mix-polyfill');
mix
.js('src/admin/Boot.js', 'assets/js/payforms-boot.js')
.js('src/admin/main.js', 'assets/js/payforms-admin.js')
.js('src/public/publicv2.js', 'assets/js/payforms-publicv2.js')
.js('src/public/fileupload.js', 'assets/js/fileupload.js')
.js('src/integrations/tinymce.js', 'assets/js/tinymce.js')
.sass('src/scss/admin/app.scss', 'assets/css/payforms-admin.css')
.sass('src/scss/admin/payforms-print.scss', 'assets/css/payforms-print.css')
.sass('src/scss/public/public.scss', 'assets/css/payforms-public.css')
.sass('src/scss/public/frameless.scss', 'assets/css/frameless.css')
.copy('src/images', 'assets/images')
.copy('src/integrations/tinymce_icon.png', 'assets/js/tinymce_icon.png')
.copy('src/libs', 'assets/libs')
.polyfill({
enabled: true,
useBuiltIns: "usage",
targets: {"firefox": "50", "ie": 11}
});