Comments (3)
cat *.css | minify -css
from minify.
I am looking for something like
myFileStream.pipe(minify).pipe(storeInCache)
My goal is the cache manager automaticaly store minified files in ram if environment is production.
from minify.
Unfortunately uglify
and html-minifier
which are used in minify
doesn't support streams. They load file completely and then process it.
About loading to ram
, stream doesn't works this way. You can just process files with minify
and store results in variables or something:
minify('client.js', function(error, data) {
if (error)
console.error(error.message);
else
console.log(data);
});
from minify.
Related Issues (20)
- "Invalid left-hand side in assignment" on "else if" HOT 2
- Comma missing HOT 1
- Benchmarks? HOT 2
- Minify removes top-level js functions because it's "unused" HOT 4
- Class name minification should not be done by default. HOT 2
- Invalid minification of '+' unary prefix operator HOT 2
- Invalid minification of computed method names HOT 4
- Invalid minification of generators HOT 11
- Invalid yield statement minification HOT 1
- Object.keys turned into "keys" HOT 3
- Can you also support mifinfy a markdown .md file? HOT 4
- Wrong execution order HOT 4
- Parentheses around increment operator are discarded HOT 2
- unable to compress js files containing Chinese HOT 3
- Bug: transform code to unsafe code HOT 20
- SyntaxError when using v10.5.2 on node v14.16.1 HOT 11
- Minification error `[email protected]` doesn't respect double quotes and convert it all to single quotes HOT 6
- Incorrect javascript produced for nested single line if..else statements. v10.3.0-v11.0.1 HOT 1
- Order of operations not preserved when using classes or switch statement HOT 3
- Variables are not more "minified" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minify.