lara65535's avatar

Mix.extract css

Lets say I have this...

mix.js('resources/assets/js/app.js', 'public/js')
    .extract(['jquery.idle'], 'public/vendor/js/')
    .extract(['dygraphs'], 'public/vendor/js/');

mix.sass('resources/assets/sass/app.scss', 'public/css')
    .extract(['dygraphs'], 'public/vendor/css/')
    .extract(['animate.css'], 'public/vendor/css/');

I cant extract the css portion of dygraphs and animate.css and laravel mix is turning them into javascript files. How do I get around this?

0 likes
2 replies
jakedowns's avatar

dang, that syntax was just what i was hoping for to target a single css import extraction, rather than having to consider the implications of extracting styles over all my components. tho, i guess i just need to address it :D

Please or to participate in this conversation.