better-vue-error-plugin
v0.1.1
Published
A webpack plugin make the errors of Vue concise
Maintainers
Readme
简体中文 | English
Better Vue Error Plugin
🔌 A Webpack plugin make the errors of Vue concise
Effect
Before

After
Concise message

Expand to view details

Installation
npm i -D better-vue-error-pluginUsage
// "webpack.config.js"
const BetterVueErrorPlugin = require('better-vue-error-plugin');
module.exports = {
// ...
plugins: [
new BetterVueErrorPlugin(),
// ...
],
}Dependency
- @babel/traverse: ^7.0.0
- webpack: >=4.0.0
- vue: >2.4.0
Parameter
|Property|Type|Default|Explanation| |-|-|-|-| |moduleName|string|"vue"|The name of the target module|
Example
new BetterVueErrorPlugin({
moduleName: 'vue',
});Contact
- WeChat: ambit_tsai
- QQ Group: 663286147
- E-mail: [email protected]
