0.1.1 • Published 3 years ago

better-vue-error-plugin v0.1.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
3 years ago

简体中文 | 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

PropertyTypeDefaultExplanation
moduleNamestring"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