-
Notifications
You must be signed in to change notification settings - Fork 9
/
webpack.mix.js
30 lines (25 loc) · 898 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
26
27
28
29
30
const mix = require('laravel-mix');
mix.sass('resources/styles/module.scss', 'resources/build/module.min.css').options({
postCss: [
require('autoprefixer')(),
]
});
mix.sass('resources/styles/admin/config.scss', 'resources/build/admin.min.css').options({
postCss: [
require('autoprefixer')(),
]
});
mix.scripts([
'node_modules/@fancyapps/fancybox/dist/jquery.fancybox.js',
'node_modules/blueimp-tmpl/js/tmpl.min.js',
'resources/scripts/jquery.imgareaselect.dev.js',
'node_modules/jquery-imagemapster/dist/jquery.imagemapster.js',
'node_modules/mobile-detect/mobile-detect.js',
], 'resources/build/vendor.min.js');
mix.babel([
'resources/scripts/jquery.imagemapster.custom.js',
'resources/scripts/module.js',
], 'resources/build/module.min.js');
mix.babel([
'resources/scripts/admin/config.js',
], 'resources/build/admin.min.js');