Last active
December 19, 2015 18:15
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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