Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 874 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 874 Bytes

laravel-mix-views-minifier

This package allows you to minify template files.

Install

$ npm install --save-dev laravel-mix-views-minifier

Usage

// webpack.mix.js

let mix = require('laravel-mix');

mix.minTemplate = require('laravel-mix-views-minifier')

if (mix.inProduction()) {
  mix.minTemplate('storage/framework/views/*.php', 'storage/framework/views/')
}

// ...

Official Documentations

Thanks

License

MIT @ sparkinzy