HassanZahirnia's avatar

How can I use LostGrid with the new Laravel Mix ?

I use Stylus and I had this piece of code in my previous Laravel project (5.3) (inside gulpfile.js) :

mix.stylus('app.styl', './public/css/app.css', {
            use: [postStylus(['lost']), rupture()]
        })

Now I'm trying curious how can I use LostGrid with Stylus in the new 5.4 version of the framework which uses webpack.

Any help would be appreciated.

0 likes
1 reply
beetuco's avatar
beetuco
Best Answer
Level 9

@xperator

npm install --save lost

my current webpack.mix.js

mix.options({
    postCss: [
        require('lost')
    ],
});

mix.js('resources/assets/js/app.js', 'public/js')
    .stylus('resources/assets/stylus/app.styl', 'public/css');
2 likes

Please or to participate in this conversation.