-
Notifications
You must be signed in to change notification settings - Fork 5
/
gulpfile.js
60 lines (45 loc) · 1.23 KB
/
gulpfile.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
54
55
56
57
58
59
var elixir = require('laravel-elixir')
require('laravel-elixir-webpack-advanced')
require('laravel-elixir-imagemin')
elixir(function(mix) {
mix.styles(
// From:
[
'./node_modules/material-design-lite/material.min.css',
'./node_modules/vue-swipe/dist/vue-swipe.css'
],
// To:
'public/css/common.css')
mix.sass([
'app.scss'
])
// mix.scripts('./node_modules/material-design-lite/material.min.js')
mix.webpack('main', require('./webpack.config.js'), {
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
})
mix.imagemin()
})
// require('laravel-elixir-fonts')
/**
* Icon font from SVG generator
*/
// for (var font in fonts) {
// if (fonts.hasOwnProperty(font)) {
// mix.fonts(
// [assetsPath + '/fonts/' + fonts[font] + '/' + fonts[font] + '.svg'],
// publicPath + '/fonts/', {
// font: {
// fontName: fonts[font], // required
// prependUnicode: true // recommended option
// },
// css: {
// fontName: fonts[font],
// // targetPath: '../../' + config.css.sass.folder + '/' + fontName + '.scss',
// fontPath: '../fonts/'
// }
// }
// ) // End mix.fonts
// }
// }