better-vue-error-plugin

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i better-vue-error-plugin

Weekly Downloads

1

Version

0.1.1

License

Apache-2.0

Unpacked Size

21.9 kB

Total Files

7

Last publish

Collaborators

  • ambit_tsai