Hello.
Thanks for your reply.
I have corrected the compile location error. thanks for spotting that one ;)
my app.blade.php file look the same as you have it in your comment.
{ { elixir('css/all.css') } }
{ { elixir('js/all.js') } }
Its strange. This morning the CSS WORKS but the JS IS NOT?
i tried this:
<link rel="stylesheet" type="text/css" href="{ { elixir('public/css/all.css') } }"> //WORKS
<script src="{ { elixir('js/all.js') } }"></script> //DOESN'T WORK
if I do this it works
gulpfile
var elixir = require('laravel-elixir');
var paths = {
'jquery': 'bower_components/jquery/dist',
'bootstrap': 'bower_components/bootstrap/dist',
'angular': 'bower_components/angular',
'fontawesome': 'bower_components/font-awesome',
'modernizr': 'bower_components/modernizr',
'normalizecss': 'bower_components/normalize-css',
'select2': 'bower_components/select2/dist'
}
elixir(function(mix) {
mix.less('app.less', 'public/css/')
.copy(paths.bootstrap + '/fonts/**', 'public/fonts')
.coffee()
.scripts([
paths.jquery + "/jquery.min.js",
paths.bootstrap + "/js/bootstrap.min.js",
paths.modernizr + "/modernizr.js",
paths.angular + "/angular.min.js",
paths.select2 + "/js/select2.min.js"
],'public/js/all.js', './')
.styles([
'public/css/app.css',
paths.bootstrap + "/css/bootstrap.css",
paths.fontawesome + "/css/font-awesome.css",
paths.normalizecss + "/normalize.css",
paths.select2 + "/css/select2.min.css"
],'public/css/all.css', './');
//version control & cache
mix.version('public/js/all.js');
mix.version('public/css/all.css');
});
?