2015-07-27 20:49:37 +02:00
|
|
|
var elixir = require('laravel-elixir');
|
|
|
|
|
|
|
|
require('laravel-elixir-spritesmith');
|
|
|
|
|
|
|
|
elixir.config.sourcemaps = false;
|
|
|
|
|
2015-07-30 19:40:23 +02:00
|
|
|
elixir.config.css.outputFolder = './../public/assets/css';
|
|
|
|
elixir.config.js.outputFolder = './../public/assets/js';
|
|
|
|
elixir.config.assetsPath = 'assets/';
|
|
|
|
elixir.config.publicPath = '../public/';
|
2015-07-27 20:49:37 +02:00
|
|
|
|
|
|
|
elixir(function(mix) {
|
|
|
|
mix.sass('app.scss');
|
|
|
|
|
2015-07-31 14:03:47 +02:00
|
|
|
mix.browserify('../../app/app.js');
|
2015-07-27 20:49:37 +02:00
|
|
|
|
|
|
|
mix.spritesmith('assets/sprites', {
|
|
|
|
imgOutput: '../public/assets/img',
|
|
|
|
cssOutput: 'assets/sass',
|
|
|
|
cssName: '_sprite.scss',
|
|
|
|
cssFormat: 'css'
|
|
|
|
});
|
|
|
|
|
2016-02-23 13:09:50 +01:00
|
|
|
mix.task('browserify', './app/**/*.js');
|
2015-07-27 20:49:37 +02:00
|
|
|
});
|