Compiling SASS and Plain CSS into a single CSS file

Posted 2 years ago by Filip_Zdravkovic

What is the simplest way to compile SASS and Plain CSS files into a single CSS file? For example, I have installed animate.css:

npm install animate.css --save

and now what? For example:

elixir(mix => {
    mix.sass('app.scss')
        .styles([
            'node_modules/animate.css/animate.css'
        ])
       .webpack('app.js');
});

... this will create two separate CSS files:

  • public\css\app.css
  • public\css\all.css

But what if we want to have one CSS file?

Please sign in or create an account to participate in this conversation.