minify

2018-10-23 admin

minify是什么

什么是minify,Minifier of js, css, html and img

minify使用教程帮助文档

Minify License Dependency Status Build Status NPM version

Minify - a minifier of js, css, html and img files. To use minify as middleware try Mollify.

Install

npm i minify --save

How to use?

const minify = require('minify');
minify('client.js', (error, data) => {
    if (error)
        return console.error(error.message);
    console.log(data);
});

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-43436.html

文章标题:minify

相关文章
babel-plugin-minify-mangle-names
babel-plugin-minify-mangle-names是什么 什么是babel-plugin-minify-mangle-names,Context- and scope- aware variable renaming. ba...
2018-09-13
Is there a .NET library for minifying Javascript?
Hairgami_Master提出了一个问题:Is there a .NET library for minifying Javascript?,或许与您遇到的问题类似。 回答者Rob MenschingMatt Wrock给出了该问题的处...
2018-04-26
工具unminify /解压JavaScript [关闭]
Andy Ford提出了一个问题:Tool to Unminify / Decompress JavaScript [closed],或许与您遇到的问题类似。 回答者Fabien Ménager给出了该问题的处理方式: You can us...
2018-03-03
babel-plugin-transform-minify-booleans
babel-plugin-transform-minify-booleans是什么 什么是babel-plugin-transform-minify-booleans,Turn boolean literals into !0 for tr...
2018-09-12
babel-plugin-minify-simplify
babel-plugin-minify-simplify是什么 什么是babel-plugin-minify-simplify,> Simplifies code for minification by reducing statem...
2018-09-12
Tool to reverse Javascript minify? [duplicate]
Andy Ford提出了一个问题:Tool to Unminify / Decompress JavaScript [closed],或许与您遇到的问题类似。 回答者Fabien Ménager给出了该问题的处理方式: You can us...
2018-04-18
babel-plugin-minify-builtins
babel-plugin-minify-builtins是什么 什么是babel-plugin-minify-builtins,Minify Standard built-in Objects babel-plugin-minify-bu...
2018-09-13
babel-preset-minify
babel-preset-minify是什么 什么是babel-preset-minify,Babel preset for all minify plugins. babel-preset-minify官网:官网 babel-prese...
2018-09-12
Is there a benefit to minifying JavaScript before gzipping it?
Mark AmerySteve Steiner提出了一个问题:Is there a benefit to minifying JavaScript before gzipping it?,或许与您遇到的问题类似。 回答者Jim Ferran...
2018-04-19
babel-plugin-minify-type-constructors
babel-plugin-minify-type-constructors是什么 什么是babel-plugin-minify-type-constructors,Note: Not recommended if full support ...
2018-09-12
回到顶部