1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00
invoiceninja/gulpfile.js
Holger Lösken 1e1a636ebb Building built.public js via Elixir
- Fetching bootstrap-combobox via Bower, same version as before
- Minifying result
2016-07-22 17:48:14 +02:00

53 lines
971 B
JavaScript

var elixir = require('laravel-elixir');
/**
* Set Elixir Source Maps
*
* @type {boolean}
*/
elixir.config.sourcemaps = true;
/**
* 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 = '';
/**
* Directory for bower source files.
* If changing this, please also see .bowerrc
*
* @type {string}
*/
var bowerDir = 'public/vendor';
elixir(function(mix) {
/**
* CSS configuration
*/
/**
* JS configuration
*/
// built.public.js
mix.scripts([
bowerDir + '/bootstrap/dist/js/bootstrap.js',
bowerDir + '/bootstrap-combobox/js/bootstrap-combobox.js'
], elixir.config.publicPath + '/built.public.js');
});