1.0.0 • Published 5 months ago

@plugin-light/webpack-plugin-check-long-constant v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

检测长变量

检测代码中的长变量,默认会输出到 log/long-constant.result-x.json 文件中。

可用于性能优化,这种文件其实应该放到远程,通过接口拉取。

如何使用

安装

pnpm add @plugin-light/webpack-plugin-check-long-constant -D

vue.config.js 中添加如下设置:

const { CheckLongConstantPlugin } = require('@plugin-light/webpack-plugin-check-long-constant');

module.exports = {
  configureWebpack: {
    plugins: [
      new CheckLongConstantPlugin()
    ],
  }
}

更新日志

点此查看

1.0.0

5 months ago

0.0.4

1 year ago