-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
36 lines (28 loc) · 1.02 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
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
elixir.config.assetsPath = 'assets';
elixir.config.publicPath = 'dist';
elixir(function(mix) {
mix.copy('node_modules/chart.js/dist/Chart.bundle.js', 'assets/js/');
mix.copy('node_modules/progressbar.js/dist/progressbar.js', 'assets/js/');
mix.sass('dashboard.scss');
mix.scripts([
'assets/js/Chart.bundle.js',
'assets/js/progressbar.js',
'assets/js/dashboard.js'
], 'dist/js/dashboard.js');
mix.scripts([
'assets/js/demo1.chart.js',
'assets/js/demo2.chart.js',
'assets/js/demo.progressbar.js'
], 'dist/js/demo.chart.js');
});