Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

(Low priority) Skip minification of already minified files #2

Closed
joeytwiddle opened this issue Sep 3, 2013 · 2 comments
Closed

(Low priority) Skip minification of already minified files #2

joeytwiddle opened this issue Sep 3, 2013 · 2 comments

Comments

@joeytwiddle
Copy link

Some of the files served in our project are third party libraries which are already minified.

Although it only happens once, re-minifying these can be very slow. (I guess that's an issue with uglify.) To reproduce, try minifying http://d3js.org/d3.v3.min.js

I would like to tell express-minify to skip minification for all files matching .min.js$ or .min.css$, and I recommend that behaviour as a default.

Alternatively, this could be addressed by whitelisting or blacklisting specific folders for minification.

(In our project, we are serving all our pre-minified and to-be-minified files from one express.static() route.)

@breezewish
Copy link
Owner

Hello. Blacklist and whitelist has been implemented now :)
Enjoy

@joeytwiddle
Copy link
Author

Fantastic! :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants