-
Notifications
You must be signed in to change notification settings - Fork 198
/
webpack.mix.js
33 lines (22 loc) · 884 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
33
const mix = require('laravel-mix');
mix.disableNotifications()
.options({processCssUrls: false})
/* ----------------------------
Compile Gramateria script
------------------------------ */
// Template related global css
.copy('gramateria/develop/css/global.css','build/gramateria/dist/global.css')
// Gramateria builder css
.sass('gramateria/develop/sass/gramateria.scss','build/gramateria/dist/gram.min.css')
// Template related global js
.copy('gramateria/develop/js/global.js','build/gramateria/dist/global.js')
// Gramateria builder js
.js('gramateria/develop/js/gramateria.js','build/gramateria/dist/gram.min.js')
// Comment this off when there is no change for Gramateria fonts and svg.
// const assets_data = [
// 'fonts',
// 'svg'
// ]
// for(let asset of assets_data){
// mix.copyDirectory(`gramateria/develop/${asset}`,`gramateria/dist/${asset}`)
// }