Skip to content

Instantly share code, notes, and snippets.

@HugoDF
Last active December 19, 2015 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HugoDF/bde3d57d37ec4348c83c to your computer and use it in GitHub Desktop.
Save HugoDF/bde3d57d37ec4348c83c to your computer and use it in GitHub Desktop.
Setup file for Laravel's Elixir asset pipeline, includes scss compilation, image copying, jsx transpilation and concatenation of library assets
process.env.DISABLE_NOTIFIER = true;
var elixir = require('laravel-elixir');
require('laravel-elixir-livereload');
elixir(function(mix) {
mix
.sass('app.scss',
elixir.config.publicPath + '/' + elixir.config.css.outputFolder,
{includePaths : require('node-neat').includePaths})
.styles([
// '../../../bower_components/something/dist/something.css',
],'./public/css/lib.css')
.scripts([
'../../../bower_components/jquery/dist/jquery.min.js',
'app.js'
], './public/js/app.js')
.copy(elixir.config.assetsPath + '/images', 'public/images')
.browserify('/react/app.jsx', './public/js/react.js')
.livereload();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment