Hira Rahman
Hira Rahman

Reputation: 11

How to Minify CSS with Laravel Mix

  1. Install Node
  2. Install NPM
  3. Go to the project folder root in the file: webpack.mix.js.

    mix.styles([
       'public/css/vendor/normalize.css',
       'public/css/vendor/videojs.css'
    ], 'public/css/all.css');
    

Upvotes: 0

Views: 4424

Answers (1)

Mac
Mac

Reputation: 65

Mix automatically minifies your CSS when running

npm run production

Laravel 5.7 Mix - Running Mix

Upvotes: 1

Related Questions