-
Notifications
You must be signed in to change notification settings - Fork 6
/
webpack.mix.js
53 lines (51 loc) · 2.11 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
let mix = require('laravel-mix');
let build = require('./tasks/build.js');
mix.disableSuccessNotifications();
mix.setPublicPath('source/assets/build');
mix.webpackConfig({
plugins: [
build.jigsaw,
build.browserSync(),
build.watch(['source/**/*.md', 'source/**/*.php', 'source/**/*.scss', '!source/**/_tmp/*']),
]
});
mix.copyDirectory('source/_assets/files', mix.config.publicPath + '/files')
.copyDirectory('source/_assets/fonts', mix.config.publicPath + '/fonts')
.copyDirectory('source/_assets/img', mix.config.publicPath + '/img')
.copyDirectory('source/_assets/json', mix.config.publicPath + '/json')
.styles([
'source/_assets/css/bootstrap.min.css',
'source/_assets/css/owl.carousel.css',
'source/_assets/css/owl.transitions.css',
'source/_assets/css/animate.css',
'source/_assets/css/meanmenu.min.css',
'source/_assets/css/font-awesome.min.css',
'source/_assets/css/themify-icons.css',
'source/_assets/css/flaticon.css',
'source/_assets/css/magnific.min.css',
'source/_assets/css/nishflu.css',
'source/_assets/css/responsive.css',
'source/_assets/css/leaflet-1.6.0.css',
], mix.config.publicPath + '/css/vendor.css')
.sass('source/_assets/sass/main.scss', 'css')
.scripts([
'source/_assets/js/jquery-1.12.4.min.js',
'source/_assets/js/bootstrap.min.js',
'source/_assets/js/owl.carousel.min.js',
'source/_assets/js/jquery.stellar.min.js',
'source/_assets/js/jquery.counterup.min.js',
'source/_assets/js/waypoints.js',
'source/_assets/js/magnific.min.js',
'source/_assets/js/wow.min.js',
'source/_assets/js/jquery.meanmenu.js',
'source/_assets/js/form-validator.min.js',
'source/_assets/js/plugins.js',
'source/_assets/js/nishflu.js',
'source/_assets/js/leaflet-1.6.0.js',
], mix.config.publicPath + '/js/vendor.js')
.js('source/_assets/js/modernizr-2.8.3.min.js', 'js')
.js('source/_assets/js/main.js', 'js')
.options({
processCssUrls: false,
})
.version();