Comments (4)
You can use https://github.com/goto-bus-stop/minify-stream, it uses terser by default:
var minify = require('minify-stream')
browserify()
/* ... */
.bundle()
.pipe(minify())
.pipe(fs.createWriteStream(/* ... */))
from terser.
Out of scope for Terser. This is a question for the Browserify project.
from terser.
This issue can be closed.
from terser.
@goto-bus-stop thank you for minify-stream. My task for processing scripts is now easier and shorter than using terser outside of stream - I had to do read builded JS file on stream write finish and manually handle sourcemaps for terser (read origin map and write new one) and write builded JS file again.
from terser.
Related Issues (20)
- Support new import attributes "with" syntax. HOT 6
- Babel transpiled ES6 class is not working after mangling with terser HOT 3
- reserved is not a supported option HOT 1
- Replace new BigInt("0") with 0n for ecma: 2020+ HOT 1
- try/catch block that can't possibly throw should be unwrapped
- IIFE Parameter is being removed and causes code to break HOT 3
- AWS Pipe line deploy got this error
- [Feature] Support @pure in JSdoc just like `@__PURE__`
- Drop console.assert() statements with always true assertion HOT 1
- Not sure what to call this. Javascript destructuring? HOT 2
- Issue in Minification in v5.31.4 HOT 2
- 5.31.4 is dropping base classes when there are sub classes that extend the base class. HOT 4
- Function is Not Inlined on `export let`
- Unused object destructuring variables with default value cannot be removed
- Provide a compress option like `pure_getters` to remove unused variables by array destructuring
- Extra parens added HOT 2
- Compress: more passes can perform worse
- Code wrapped in a if clause doesn't get as minified as a non-wrapped one HOT 1
- ESTree `ImportExpression`s are not recognized HOT 2
- error during build: SyntaxError: Unexpected token: punc (:) 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 terser.