ogheo / yii2-htmlcompress Goto Github PK
View Code? Open in Web Editor NEWCompress HTML output into a single line
License: MIT License
Compress HTML output into a single line
License: MIT License
Textareas are commonly used for text editors or code highlighters.
<pre><code>...</code></pre>
This formation is used to add the code highlighting and must be excluded.
Hi,
Thanks for the work you put into this module.
I've successfully setup the module from the common\config\main\components config file of the advanced template and it does work for both frontend and backend. However, when I run the backend application, it shows a new error with the message "Uncaught SyntaxError: Unexpected end of input". When I turn off the module by setting the config switch off in the config, the error goes away.
To resolve this, I decided to split the config and place the config in both backend\config\main\components config file and frontend\config\main\components file. Somehow, it doesn't work at all when setup this way.
Please advise if I am doing something wrong or if this is a known error.
Regards,
Adam
Hi
You added in you last update a new regex for comments. Unfortunately this breaks my JS code. Example:
// this comment works
$(document).ready(function () {
// this comment does not work, regex doesn't catch it
$('.iCheck').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%'
});
});
Can you reproduce this issue?
Regards
Jonas
I do not need to compress the code
tag. How i can do that?
Whitespace between 'else if' is removed during javascript compress, that breaks the script from running
Since regex removes everything after //, url's are also removed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.