-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Minify without composer #83
Comments
Thanks It works. |
|
Is the path-converter library really necessary? What does it do? |
Yes it is. It will convert relative paths in your CSS files if the location of the minified files is different from the source file. It also fixes relative paths inside |
Do you need to include the CSS.php if you just want to minify JS? Is there any means to make it lighter for some purposes? |
If you're only minifying JS, you don't need to include CSS.php. And the other way around. |
I have this error, why?
Response : sudo apt install php7.2-mbstring |
we can also use this site: https://php-download.com/package/matthiasmullie/minify Then we can simply require one file sth like: |
@matthiasmullie thanks for the library .. if i only use it to minify CSS, do I need to include data/js directory? |
1: Clone this (minifier) repository: https://github.com/matthiasmullie/minify. Make sure you leave the directory structure intact (the files in
data/js
should stay in the same location relative tosrc/JS.php
)2: Clone path-converter repository: https://github.com/matthiasmullie/path-converter
3: Include all files from both projects.
Assuming you cloned both projects to
/path/to/libraries/
, that would look like this:4: Use minifier! E.g.:
The text was updated successfully, but these errors were encountered: