laravel-mix-views-minifier
v2.0.1
Published
Minify template files with Laravel Mix
Downloads
7
Readme
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
- Documentation for Mix can be found on the Laravel website.
- Documentation for HTMLMinifier can be found on the HTMLMinifier website.
Thanks
License
MIT @ sparkinzy