2015-03-12 01:44:39 +01:00
|
|
|
var elixir = require('laravel-elixir');
|
|
|
|
|
2016-07-22 12:36:58 +02:00
|
|
|
/**
|
|
|
|
* Set Elixir Source Maps
|
|
|
|
*
|
|
|
|
* @type {boolean}
|
2015-03-12 01:44:39 +01:00
|
|
|
*/
|
2016-07-22 12:36:58 +02:00
|
|
|
elixir.config.sourcemaps = true;
|
|
|
|
|
2016-07-22 17:48:14 +02:00
|
|
|
/**
|
|
|
|
* Configuring assets path.
|
|
|
|
* Explicitly setting it to empty, as we're not using Laravels resources/assets folder
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
elixir.config.assetsPath = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Configuring Javascript assets path.
|
|
|
|
* Explicitly setting it to empty, as we're not using Laravels resources/assets/js folder
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
elixir.config.js.folder = '';
|
|
|
|
|
2016-07-22 12:36:58 +02:00
|
|
|
/**
|
|
|
|
* Directory for bower source files.
|
|
|
|
* If changing this, please also see .bowerrc
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
var bowerDir = 'public/vendor';
|
2015-03-12 01:44:39 +01:00
|
|
|
|
|
|
|
elixir(function(mix) {
|
2016-07-22 12:36:58 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* CSS configuration
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* JS configuration
|
|
|
|
*/
|
2016-07-24 13:31:25 +02:00
|
|
|
mix.scripts(['resources/assets/js/Chart.js'], 'public/js/Chart.min.js')
|
|
|
|
.scripts(['resources/assets/js/d3.js'], 'public/js/d3.min.js');
|
2016-07-22 12:36:58 +02:00
|
|
|
|
|
|
|
|
2015-03-12 01:44:39 +01:00
|
|
|
});
|