-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
32 lines (26 loc) · 881 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
31
32
var tabs = require('tabs');
let mix = require('laravel-mix');
let dev_folder = 'dev';
let prod_folder = 'style';
mix
.copyDirectory(dev_folder +'/scss/admin', prod_folder+'/admin')
.copy(dev_folder +'/scss/fonts/*.*', prod_folder+'/fonts')
.copy(dev_folder +'/scss/images/*.*', prod_folder+'/images')
.js(dev_folder+'/js/*.js', 'js')
.autoload({
jquery: ['$', 'window.jQuery']
})
.js(dev_folder+'/js/likes/*.js', 'js/likes')
.autoload({
jquery: ['$', 'window.jQuery']
})
// .js(dev_folder+'/js/user.js', 'js')
.sass(dev_folder +'/scss/login.scss', prod_folder)
.sass(dev_folder +'/scss/profile.scss', prod_folder)
.sass(dev_folder +'/scss/comments.scss', prod_folder)
.sass(dev_folder +'/scss/ws__main.scss', prod_folder)
.sass(dev_folder +'/scss/style.scss', prod_folder)
.options({
autoprefixer: { remove: false }
})
.browserSync('http://minakb.localhost/');