* Fix workflow * Trigger * [auto] Update compiled version * [auto] Commit modules * Push Windows changes * Fix * [auto] Update compiled version * Try removing cwd * [auto] Update compiled version * Try with path module * [auto] Update compiled version * Fix path * [auto] Update compiled version * Use raw path * [auto] Update compiled version * Other path * [auto] Update compiled version * Avoid @action/exec * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * Try with shelljs * [auto] Update compiled version * Fix my stupidity * Copy scripts to local dir * [auto] Update compiled version * Still use path * [auto] Update compiled version * Delete entrypoint.sh * [auto] Update compiled version * Make file executable * [auto] Update compiled version * Try using bash * [auto] Update compiled version
48 lines
1.7 KiB
Markdown
48 lines
1.7 KiB
Markdown
<p align="center"><img src="/static/node-minify.png" width="348" alt="node-minify"></p>
|
|
|
|
<p align="center">A very light minifier Node.js module.</p>
|
|
|
|
<p align="center">
|
|
<br>
|
|
<a href="https://npmjs.org/package/@node-minify/babel-minify"><img src="https://img.shields.io/npm/v/@node-minify/babel-minify.svg"></a>
|
|
<a href="https://npmjs.org/package/@node-minify/babel-minify"><img src="https://img.shields.io/npm/dm/@node-minify/babel-minify.svg"></a>
|
|
<a href="https://codecov.io/gh/srod/node-minify"><img src="https://codecov.io/gh/srod/node-minify/branch/develop/graph/badge.svg"></a><br>
|
|
<a href="https://travis-ci.org/srod/node-minify"><img src="https://img.shields.io/travis/srod/node-minify/master.svg?label=linux"></a>
|
|
<a href="https://dev.azure.com/srodolphe/srodolphe/_build/latest?definitionId=1"><img src="https://dev.azure.com/srodolphe/srodolphe/_apis/build/status/srod.node-minify?branchName=master"></a>
|
|
<a href="https://circleci.com/gh/srod/node-minify/tree/master"><img src="https://circleci.com/gh/srod/node-minify/tree/master.svg?style=shield"></a>
|
|
</p>
|
|
|
|
# babel-minify
|
|
|
|
`babel-minify` is a plugin for [`node-minify`](https://github.com/srod/node-minify)
|
|
|
|
It allow you to compress JavaScript files.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm install @node-minify/core @node-minify/babel-minify
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const minify = require('@node-minify/core');
|
|
const babelMinify = require('@node-minify/babel-minify');
|
|
|
|
minify({
|
|
compressor: babelMinify,
|
|
input: 'foo.js',
|
|
output: 'bar.js',
|
|
callback: function(err, min) {}
|
|
});
|
|
```
|
|
|
|
## Documentation
|
|
|
|
Visit https://node-minify.2clics.net/compressors/babel-minify.html for full documentation
|
|
|
|
## License
|
|
|
|
[MIT](https://github.com/srod/node-minify/blob/develop/LICENSE)
|