9 Star 24 Fork 3

Ambit / better-vue-error-plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
Ambit 提交于 2020-11-28 11:52 . docs: update README

简体中文 | English

Better Vue Error Plugin

🔌 A Webpack plugin make the errors of Vue concise

Effect

Before

before

After

Concise message

after01

Expand to view details

after02

Installation

npm i -D better-vue-error-plugin

Usage

// "webpack.config.js"
const BetterVueErrorPlugin = require('better-vue-error-plugin');

module.exports = {
    // ...
    plugins: [
        new BetterVueErrorPlugin(),
        // ...
    ],
}

Dependency

  1. @babel/traverse: ^7.0.0
  2. webpack: >=4.0.0
  3. vue: >2.4.0

Parameter

Property Type Default Explanation
moduleName string "vue" The name of the target module

Example

new BetterVueErrorPlugin({
    moduleName: 'vue',
});

Contact

  1. WeChat: ambit_tsai
  2. QQ Group: 663286147
  3. E-mail: ambit_tsai@qq.com
JavaScript
1
https://gitee.com/ambit/better-vue-error-plugin.git
git@gitee.com:ambit/better-vue-error-plugin.git
ambit
better-vue-error-plugin
better-vue-error-plugin
main

搜索帮助