Tagged articles
2 articles
Page 1 of 1
php Courses
php Courses
Mar 5, 2021 · Backend Development

Automatically Minify Laravel Blade Templates with Laravel Mix

This guide demonstrates how to set up Laravel Mix with the laravel-mix-template-minifier plugin to automatically compress Blade template files, configure watching scripts, enable boot-time execution, and optimize npm scripts to produce minified HTML, CSS, and JavaScript while preserving PHP code.

AutomationDeploymenthtml-minifier
0 likes · 6 min read
Automatically Minify Laravel Blade Templates with Laravel Mix
Node Underground
Node Underground
Nov 12, 2015 · Backend Development

How to Prevent CPU 100% When Using html-minifier in Node.js

This article explores the challenges of real‑time HTML and inline JS/CSS minification with html‑minifier in Node.js, including CPU‑spike bugs caused by malformed HTML, workarounds using the vm module with timeouts, performance optimizations, and future directions for faster, stable compression.

CPUhtml-minifierminification
0 likes · 6 min read
How to Prevent CPU 100% When Using html-minifier in Node.js