Support the ongoing development of Laravel.io →
posted 9 years ago
Views
Last updated 2 years ago.
0

OK, I think I got it now:

elixir(function(mix) {
    
    // mix.phpUnit();
    
    mix.less('app.less').styles([
        'jquery.validate.css',
        'app.css'
    ], 'public/css/_all.css', 'public/css');
    
    mix.coffee().scripts([
        'jquery.validate.js',
        'app.js',
        'utils.js'
    ], 'public/js/_all.js', 'public/js')
    
    mix.version([
        'public/css/_all.css',
        'public/js/_all.js'
    ]);
    
});

.. I guess I was calling version wrongly, it requires an array to be passed with both JS and CSS files? (rather that two separate calls)

0

hmm, I have the opposite problem, my app.css file is getting compiled, but I have an error, nothing written to the manifest file, and I dont know why.

Why in your case do you understand why you were getting the error?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

martynbiz martynbiz Joined 15 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.