uglifyjs-webpack-plugin 已淘汰

请使用 UglifyJS Webpack 插件,它可以缩小 JavaScript 代码。需要 Node v6.9.0 及以上和 Webpack v4.0.0 及以上。安装:npm install uglifyjs-webpack-plugin --save-dev。配置:在 webpack.config.js 中添加 const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); module.exports = {plugins: [new UglifyJsPlugin()]};

zip
uglifyjs-webpack-plugin-master.zip 预估大小:92个文件
folder
uglifyjs-webpack-plugin-master 文件夹
file
package.json 3KB
folder
.github 文件夹
file
FUNDING.yml 25B
file
PULL_REQUEST_TEMPLATE.md 883B
file
ISSUE_TEMPLATE.md 717B
folder
ISSUE_TEMPLATE 文件夹
file
SUPPORT.md 406B
file
MODIFICATION.md 698B
file
BUG.md 1KB
file
DOCS.md 686B
file
FEATURE.md 571B
file
CONTRIBUTING.md 7KB
file
CODEOWNERS 200B
folder
test 文件夹
file
minify-option.test.js 7KB
file
helpers.js 2KB
file
supports-multicompiler.test.js 3KB
file
cache-option.test.js 11KB
file
validation.test.js 3KB
file
uglifyOptions-option.test.js 15KB
file
worker.test.js 3KB
file
extractComments-option.test.js 11KB
file
exclude-option.test.js 3KB
file
cjs.test.js 210B
file
parallel-option-failure.test.js 3KB
file
sourceMap-option.test.js 6KB
file
include-option.test.js 3KB
file
chunkFilter-option.test.js 1KB
folder
__snapshots__ 文件夹
file
parallel-option.test.js.snap 14KB
file
chunkFilter-option.test.js.snap 5KB
file
cache-option.test.js.snap 60KB
file
sourceMap-option.test.js.snap 18KB
file
worker.test.js.snap 2KB
file
supports-multicompiler.test.js.snap 7KB
file
minify-option.test.js.snap 20KB
file
include-option.test.js.snap 31KB
file
parallel-option-failure.test.js.snap 8KB
file
UglifyJsPlugin.test.js.snap 9KB
file
validation.test.js.snap 1KB
file
extractComments-option.test.js.snap 97KB
file
warningsFilter-option.test.js.snap 11KB
file
exclude-option.test.js.snap 31KB
file
test-option.test.js.snap 61KB
file
uglifyOptions-option.test.js.snap 33KB
file
UglifyJsPlugin.test.js 7KB
file
warningsFilter-option.test.js 4KB
file
parallel-option.test.js 4KB
file
test-option.test.js 4KB
folder
fixtures 文件夹
folder
async-import-export 文件夹
file
entry.js 114B
file
async-dep.js 30B
folder
minify 文件夹
file
es5.js 186B
file
es6.js 212B
file
excluded2.js 81B
folder
import-export 文件夹
file
dep.js 52B
file
entry.js 225B
file
async-dep.js 30B
file
cache-2.js 57B
file
excluded1.js 81B
folder
nested 文件夹
file
comments.js 93B
file
included2.js 81B
file
included1.js 81B
file
comments-4.js 99B
file
entry.js 125B
file
comments-2.js 73B
file
cache-3.js 36B
file
unreachable-code.js 60B
file
comments-3.js 219B
file
cache-1.js 27B
file
cache.js 125B
file
unreachable-code-2.js 60B
file
entry.mjs 125B
file
cache-4.js 125B
file
comments.js 444B
file
.prettierignore 57B
file
LICENSE 1KB
file
package-lock.json 433KB
file
azure-pipelines.yml 6KB
folder
src 文件夹
file
index.js 12KB
file
minify.js 4KB
file
worker.js 577B
file
options.json 3KB
file
TaskRunner.js 3KB
file
cjs.js 69B
file
.eslintrc.js 103B
file
husky.config.js 123B
file
.gitignore 217B
file
CHANGELOG.md 21KB
file
commitlint.config.js 70B
file
.prettierrc.js 92B
file
README.md 15KB
file
.eslintignore 44B
file
.editorconfig 223B
file
.gitattributes 65B
file
lint-staged.config.js 139B
file
babel.config.js 287B
...
zip 文件大小:199.61KB