{"_id":"@nuxt/friendly-errors-webpack-plugin","_rev":"3317307","name":"@nuxt/friendly-errors-webpack-plugin","description":"Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience","dist-tags":{"latest":"2.6.0"},"maintainers":[{"name":"antfu","email":""},{"name":"atinux","email":"atinux@gmail.com"},{"name":"clarkdo","email":"clark.duxin@gmail.com"},{"name":"danielroe","email":"daniel@concision.co.uk"},{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},{"name":"nuxtbot","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"time":{"modified":"2024-06-11T08:52:14.000Z","created":"2018-11-03T00:48:54.792Z","2.6.0":"2023-11-23T14:43:35.950Z","2.5.2":"2021-10-14T15:30:48.861Z","2.5.1":"2021-04-09T11:09:50.772Z","2.5.0":"2019-05-20T10:47:35.402Z","2.4.0":"2018-12-07T13:43:07.435Z","2.3.2":"2018-11-23T22:30:39.185Z","2.3.0":"2018-11-03T00:48:54.792Z"},"users":{},"author":{"name":"Geoffroy Warin"},"repository":{"type":"git","url":"git+https://github.com/nuxt/friendly-errors-webpack-plugin.git"},"versions":{"2.6.0":{"name":"@nuxt/friendly-errors-webpack-plugin","publishConfig":{"access":"public"},"version":"2.6.0","description":"Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience","main":"index.js","scripts":{"test":"eslint . && jest","release":"standard-version"},"keywords":["friendly","errors","webpack","plugin"],"author":{"name":"Geoffroy Warin"},"repository":{"type":"git","url":"git+https://github.com/nuxt/friendly-errors-webpack-plugin.git"},"bugs":{"url":"https://github.com/nuxt/friendly-errors-webpack-plugin/issues"},"license":"MIT","peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"},"devDependencies":{"babel-core":"^6.26.3","babel-eslint":"^8.2.6","babel-loader":"^7.1.5","babel-plugin-transform-async-to-generator":"^6.24.1","babel-preset-react":"^6.24.1","eslint":"^5.16.0","eslint-config-standard":"^12.0.0","eslint-loader":"^2.2.1","eslint-plugin-import":"^2.29.0","eslint-plugin-node":"^8.0.1","eslint-plugin-promise":"^4.3.1","eslint-plugin-standard":"^4.1.0","expect":"^1.20.2","jest":"^29.7.0","memory-fs":"^0.4.1","standard-version":"^4.4.0","strip-ansi":"^5.2.0","webpack":"^4.47.0"},"dependencies":{"chalk":"^2.4.2","consola":"^3.2.3","error-stack-parser":"^2.1.4","string-width":"^4.2.3"},"jest":{"testEnvironment":"node","transformIgnorePatterns":["/node_modules/","<rootDir>/src/","<rootDir>/index.js"]},"engines":{"node":">=14.18.0","npm":">=5.0.0"},"gitHead":"1078b16eb02043bb1d32f30af500fda301c1ad05","homepage":"https://github.com/nuxt/friendly-errors-webpack-plugin#readme","_id":"@nuxt/friendly-errors-webpack-plugin@2.6.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"bd0cf6cd73b6e1d3e7c7f1c0de43333e69cc660c","size":9553,"noattachment":false,"key":"/@nuxt/friendly-errors-webpack-plugin/-/@nuxt/friendly-errors-webpack-plugin-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@nuxt/friendly-errors-webpack-plugin/download/@nuxt/friendly-errors-webpack-plugin-2.6.0.tgz"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"atinux","email":"atinux@gmail.com"},{"name":"clarkdo","email":"clark.duxin@gmail.com"},{"name":"danielroe","email":"daniel@concision.co.uk"},{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},{"name":"nuxtbot","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/friendly-errors-webpack-plugin_2.6.0_1700750615718_0.1001113213367344"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-23T14:43:35.950Z","publish_time":1700750615950,"_source_registry_name":"default","_cnpm_publish_time":1700750615950},"2.5.2":{"name":"@nuxt/friendly-errors-webpack-plugin","publishConfig":{"access":"public"},"version":"2.5.2","description":"Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience","main":"index.js","scripts":{"test":"eslint . && jest","release":"standard-version"},"keywords":["friendly","errors","webpack","plugin"],"author":{"name":"Geoffroy Warin"},"repository":{"type":"git","url":"git+https://github.com/nuxt/friendly-errors-webpack-plugin.git"},"bugs":{"url":"https://github.com/nuxt/friendly-errors-webpack-plugin/issues"},"license":"MIT","peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"},"devDependencies":{"babel-core":"^6.23.1","babel-eslint":"^8.0.0","babel-loader":"^7.1.4","babel-plugin-transform-async-to-generator":"^6.22.0","babel-preset-react":"^6.23.0","eslint":"^5.8.0","eslint-config-standard":"^12.0.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","expect":"^1.20.2","jest":"^22.4.2","memory-fs":"^0.4.1","standard-version":"^4.3.0","strip-ansi":"^5.0.0","webpack":"^4.23.1"},"dependencies":{"chalk":"^2.3.2","consola":"^2.6.0","error-stack-parser":"^2.0.0","string-width":"^4.2.3"},"jest":{"testEnvironment":"node"},"engines":{"node":">=8.0.0","npm":">=5.0.0"},"gitHead":"5e12883582ab5d62fc080cd673777574c24b22d2","homepage":"https://github.com/nuxt/friendly-errors-webpack-plugin#readme","_id":"@nuxt/friendly-errors-webpack-plugin@2.5.2","_nodeVersion":"16.4.2","_npmVersion":"7.18.1","dist":{"shasum":"982a43ee2da61611f7396439e57038392d3944d5","size":9497,"noattachment":false,"key":"/@nuxt/friendly-errors-webpack-plugin/-/@nuxt/friendly-errors-webpack-plugin-2.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@nuxt/friendly-errors-webpack-plugin/download/@nuxt/friendly-errors-webpack-plugin-2.5.2.tgz"},"_npmUser":{"name":"clarkdo","email":"clark.duxin@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"atinux","email":"atinux@gmail.com"},{"name":"clarkdo","email":"clark.duxin@gmail.com"},{"name":"danielroe","email":"daniel@concision.co.uk"},{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},{"name":"nuxtbot","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/friendly-errors-webpack-plugin_2.5.2_1634225448734_0.5752937841210175"},"_hasShrinkwrap":false,"publish_time":1634225448861,"_cnpm_publish_time":1634225448861},"2.5.1":{"name":"@nuxt/friendly-errors-webpack-plugin","publishConfig":{"access":"public"},"version":"2.5.1","description":"Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience","main":"index.js","scripts":{"test":"eslint . && jest","release":"standard-version"},"keywords":["friendly","errors","webpack","plugin"],"author":{"name":"Geoffroy Warin"},"repository":{"type":"git","url":"git+https://github.com/nuxt/friendly-errors-webpack-plugin.git"},"bugs":{"url":"https://github.com/nuxt/friendly-errors-webpack-plugin/issues"},"license":"MIT","peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"},"devDependencies":{"babel-core":"^6.23.1","babel-eslint":"^8.0.0","babel-loader":"^7.1.4","babel-plugin-transform-async-to-generator":"^6.22.0","babel-preset-react":"^6.23.0","eslint":"^5.8.0","eslint-config-standard":"^12.0.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","expect":"^1.20.2","jest":"^22.4.2","memory-fs":"^0.4.1","standard-version":"^4.3.0","strip-ansi":"^5.0.0","webpack":"^4.23.1"},"dependencies":{"chalk":"^2.3.2","consola":"^2.6.0","error-stack-parser":"^2.0.0","string-width":"^2.0.0"},"jest":{"testEnvironment":"node"},"engines":{"node":">=8.0.0","npm":">=5.0.0"},"gitHead":"4551939e6905edb106d2e4c5781c400b76700354","homepage":"https://github.com/nuxt/friendly-errors-webpack-plugin#readme","_id":"@nuxt/friendly-errors-webpack-plugin@2.5.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"3ab815c31eb43859a239848a85481157aaf7b07e","size":10865,"noattachment":false,"key":"/@nuxt/friendly-errors-webpack-plugin/-/@nuxt/friendly-errors-webpack-plugin-2.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@nuxt/friendly-errors-webpack-plugin/download/@nuxt/friendly-errors-webpack-plugin-2.5.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"atinux","email":"atinux@gmail.com"},{"name":"clarkdo","email":"clark.duxin@gmail.com"},{"name":"danielroe","email":"daniel@concision.co.uk"},{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},{"name":"nuxtbot","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/friendly-errors-webpack-plugin_2.5.1_1617966590522_0.21749558799815327"},"_hasShrinkwrap":false,"publish_time":1617966590772,"_cnpm_publish_time":1617966590772},"2.5.0":{"name":"@nuxt/friendly-errors-webpack-plugin","publishConfig":{"access":"public"},"version":"2.5.0","description":"Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience","main":"index.js","scripts":{"test":"eslint . && jest","release":"standard-version"},"keywords":["friendly","errors","webpack","plugin"],"author":{"name":"Geoffroy Warin"},"repository":{"type":"git","url":"git+https://github.com/nuxt/friendly-errors-webpack-plugin.git"},"bugs":{"url":"https://github.com/nuxt/friendly-errors-webpack-plugin/issues"},"license":"MIT","peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0"},"devDependencies":{"babel-core":"^6.23.1","babel-eslint":"^8.0.0","babel-loader":"^7.1.4","babel-plugin-transform-async-to-generator":"^6.22.0","babel-preset-react":"^6.23.0","eslint":"^5.8.0","eslint-config-standard":"^12.0.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","expect":"^1.20.2","jest":"^22.4.2","memory-fs":"^0.4.1","standard-version":"^4.3.0","strip-ansi":"^5.0.0","webpack":"^4.23.1"},"dependencies":{"chalk":"^2.3.2","consola":"^2.6.0","error-stack-parser":"^2.0.0","string-width":"^2.0.0"},"jest":{"testEnvironment":"node"},"engines":{"node":">=8.0.0","npm":">=5.0.0"},"gitHead":"6052e5a3e0f1e5e2f937205c5de8d01a0506e101","homepage":"https://github.com/nuxt/friendly-errors-webpack-plugin#readme","_id":"@nuxt/friendly-errors-webpack-plugin@2.5.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"clarkdo","email":"clark.duxin@gmail.com"},"dist":{"shasum":"5374665bc72d34b7dbadcc361a4777e3f0f5d46b","size":10705,"noattachment":false,"key":"/@nuxt/friendly-errors-webpack-plugin/-/@nuxt/friendly-errors-webpack-plugin-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@nuxt/friendly-errors-webpack-plugin/download/@nuxt/friendly-errors-webpack-plugin-2.5.0.tgz"},"maintainers":[{"name":"antfu","email":""},{"name":"atinux","email":"atinux@gmail.com"},{"name":"clarkdo","email":"clark.duxin@gmail.com"},{"name":"danielroe","email":"daniel@concision.co.uk"},{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},{"name":"nuxtbot","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/friendly-errors-webpack-plugin_2.5.0_1558349255238_0.3435151326276855"},"_hasShrinkwrap":false,"publish_time":1558349255402,"_cnpm_publish_time":1558349255402},"2.4.0":{"name":"@nuxt/friendly-errors-webpack-plugin","publishConfig":{"access":"public"},"version":"2.4.0","description":"Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience","main":"index.js","scripts":{"test":"eslint . && jest","release":"standard-version"},"keywords":["friendly","errors","webpack","plugin"],"author":{"name":"Geoffroy Warin"},"repository":{"type":"git","url":"git+https://github.com/nuxt/friendly-errors-webpack-plugin.git"},"bugs":{"url":"https://github.com/nuxt/friendly-errors-webpack-plugin/issues"},"license":"MIT","peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0"},"devDependencies":{"babel-core":"^6.23.1","babel-eslint":"^8.0.0","babel-loader":"^7.1.4","babel-plugin-transform-async-to-generator":"^6.22.0","babel-preset-react":"^6.23.0","eslint":"^5.8.0","eslint-config-standard":"^12.0.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","expect":"^1.20.2","jest":"^22.4.2","memory-fs":"^0.4.1","standard-version":"^4.3.0","strip-ansi":"^5.0.0","webpack":"^4.23.1"},"dependencies":{"chalk":"^2.3.2","consola":"^2.0.0-1","error-stack-parser":"^2.0.0","string-width":"^2.0.0"},"jest":{"testEnvironment":"node"},"engines":{"node":">=8.0.0","npm":">=5.0.0"},"gitHead":"b316a3bf34b47658986636268b2ae2d87694626f","homepage":"https://github.com/nuxt/friendly-errors-webpack-plugin#readme","_id":"@nuxt/friendly-errors-webpack-plugin@2.4.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"clarkdo","email":"clark.duxin@gmail.com"},"dist":{"shasum":"525ad27dca736f5b0554b4d3675c586e8f6d3959","size":10480,"noattachment":false,"key":"/@nuxt/friendly-errors-webpack-plugin/-/@nuxt/friendly-errors-webpack-plugin-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@nuxt/friendly-errors-webpack-plugin/download/@nuxt/friendly-errors-webpack-plugin-2.4.0.tgz"},"maintainers":[{"name":"antfu","email":""},{"name":"atinux","email":"atinux@gmail.com"},{"name":"clarkdo","email":"clark.duxin@gmail.com"},{"name":"danielroe","email":"daniel@concision.co.uk"},{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},{"name":"nuxtbot","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/friendly-errors-webpack-plugin_2.4.0_1544190187327_0.10391244001618305"},"_hasShrinkwrap":false,"publish_time":1544190187435,"_cnpm_publish_time":1544190187435},"2.3.2":{"name":"@nuxt/friendly-errors-webpack-plugin","publishConfig":{"access":"public"},"version":"2.3.2","description":"Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience","main":"index.js","scripts":{"test":"eslint . && jest","release":"standard-version"},"keywords":["friendly","errors","webpack","plugin"],"author":{"name":"Geoffroy Warin"},"repository":{"type":"git","url":"git+https://github.com/nuxt/friendly-errors-webpack-plugin.git"},"bugs":{"url":"https://github.com/nuxt/friendly-errors-webpack-plugin/issues"},"license":"MIT","peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0"},"devDependencies":{"babel-core":"^6.23.1","babel-eslint":"^8.0.0","babel-loader":"^7.1.4","babel-plugin-transform-async-to-generator":"^6.22.0","babel-preset-react":"^6.23.0","eslint":"^5.8.0","eslint-config-standard":"^12.0.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","expect":"^1.20.2","jest":"^22.4.2","memory-fs":"^0.4.1","standard-version":"^4.3.0","strip-ansi":"^5.0.0","webpack":"^4.23.1"},"dependencies":{"chalk":"^2.3.2","consola":"^2.0.0-1","error-stack-parser":"^2.0.0","string-width":"^2.0.0"},"jest":{"testEnvironment":"node"},"engines":{"node":">=8.0.0","npm":">=5.0.0"},"gitHead":"ebec7fcd150d835033979f77941c1c573c733c74","homepage":"https://github.com/nuxt/friendly-errors-webpack-plugin#readme","_id":"@nuxt/friendly-errors-webpack-plugin@2.3.2","_npmVersion":"6.4.1","_nodeVersion":"10.8.0","_npmUser":{"name":"clarkdo","email":"clark.duxin@gmail.com"},"dist":{"shasum":"eb2c49b99d4f09ebdd635410b669b0700c2746f3","size":10341,"noattachment":false,"key":"/@nuxt/friendly-errors-webpack-plugin/-/@nuxt/friendly-errors-webpack-plugin-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@nuxt/friendly-errors-webpack-plugin/download/@nuxt/friendly-errors-webpack-plugin-2.3.2.tgz"},"maintainers":[{"name":"antfu","email":""},{"name":"atinux","email":"atinux@gmail.com"},{"name":"clarkdo","email":"clark.duxin@gmail.com"},{"name":"danielroe","email":"daniel@concision.co.uk"},{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},{"name":"nuxtbot","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/friendly-errors-webpack-plugin_2.3.2_1543012239059_0.21787531792335124"},"_hasShrinkwrap":false,"publish_time":1543012239185,"_cnpm_publish_time":1543012239185},"2.3.0":{"name":"@nuxt/friendly-errors-webpack-plugin","publishConfig":{"access":"public"},"version":"2.3.0","description":"Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience","main":"index.js","scripts":{"test":"eslint . && jest","release":"standard-version"},"keywords":["friendly","errors","webpack","plugin"],"author":{"name":"Geoffroy Warin"},"repository":{"type":"git","url":"git+https://github.com/nuxt/friendly-errors-webpack-plugin.git"},"bugs":{"url":"https://github.com/nuxt/friendly-errors-webpack-plugin/issues"},"license":"MIT","peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0"},"devDependencies":{"babel-core":"^6.23.1","babel-eslint":"^8.0.0","babel-loader":"^7.1.4","babel-plugin-transform-async-to-generator":"^6.22.0","babel-preset-react":"^6.23.0","eslint":"^5.8.0","eslint-config-standard":"^12.0.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","expect":"^1.20.2","jest":"^22.4.2","memory-fs":"^0.4.1","standard-version":"^4.3.0","strip-ansi":"^5.0.0","webpack":"^4.23.1"},"dependencies":{"chalk":"^2.3.2","consola":"^2.0.0-1","error-stack-parser":"^2.0.0","string-width":"^2.0.0"},"jest":{"testEnvironment":"node"},"engines":{"node":">=8.0.0","npm":">=5.0.0"},"gitHead":"d65e44abd08f0de2094d532f37806f2af38eabbe","homepage":"https://github.com/nuxt/friendly-errors-webpack-plugin#readme","_id":"@nuxt/friendly-errors-webpack-plugin@2.3.0","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},"dist":{"shasum":"c013eb46282c8d87975a8f67bcba7e8ad5d2d571","size":10274,"noattachment":false,"key":"/@nuxt/friendly-errors-webpack-plugin/-/@nuxt/friendly-errors-webpack-plugin-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@nuxt/friendly-errors-webpack-plugin/download/@nuxt/friendly-errors-webpack-plugin-2.3.0.tgz"},"maintainers":[{"name":"antfu","email":""},{"name":"atinux","email":"atinux@gmail.com"},{"name":"clarkdo","email":"clark.duxin@gmail.com"},{"name":"danielroe","email":"daniel@concision.co.uk"},{"name":"nuxt.bot","email":"nuxt.bot@gmail.com"},{"name":"nuxtbot","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/friendly-errors-webpack-plugin_2.3.0_1541206134592_0.8002725043657497"},"_hasShrinkwrap":false,"publish_time":1541206134792,"_cnpm_publish_time":1541206134792}},"readme":"# Friendly-errors-webpack-plugin\n\n[![npm](https://img.shields.io/npm/v/@nuxtjs/friendly-errors-webpack-plugin.svg)](https://www.npmjs.com/package/@nuxtjs/friendly-errors-webpack-plugin)\n[![Build Status](https://travis-ci.org/nuxt/friendly-errors-webpack-plugin.svg?branch=master)](https://travis-ci.org/nuxt/friendly-errors-webpack-plugin)\n[![Build status](https://ci.appveyor.com/api/projects/status/hqi9g8u2e17epr2d?svg=true)](https://ci.appveyor.com/project/nuxt/friendly-errors-webpack-plugin/branch/master)\n\nFriendly-errors-webpack-plugin recognizes certain classes of webpack\nerrors and cleans, aggregates and prioritizes them to provide a better\nDeveloper Experience.\n\nIt is easy to add types of errors so if you would like to see more\nerrors get handled, please open a [PR](https://help.github.com/articles/creating-a-pull-request/)!\n\n## Getting started\n\n### Installation\n\n```bash\nnpm install @nuxt/friendly-errors-webpack-plugin --save-dev\n```\n\n### Basic usage\n\nSimply add `FriendlyErrorsWebpackPlugin` to the plugin section in your Webpack config.\n\n```javascript\nvar FriendlyErrorsWebpackPlugin = require('@nuxt/friendly-errors-webpack-plugin');\n\nvar webpackConfig = {\n  // ...\n  plugins: [\n    new FriendlyErrorsWebpackPlugin(),\n  ],\n  // ...\n}\n```\n\n### Turn off errors\n\nYou need to turn off all error logging by setting your webpack config quiet option to true.\n\n```javascript\napp.use(require('webpack-dev-middleware')(compiler, {\n  // ...\n  logLevel: 'SILENT',\n  // ...\n}));\n```\n\nIf you use the webpack-dev-server, there is a setting in webpack's ```devServer``` options:\n\n```javascript\n// webpack config root\n{\n  // ...\n  devServer: {\n    // ...\n    quiet: true,\n    // ...\n  },\n  // ...\n}\n```\n\nIf you use webpack-hot-middleware, that is done by setting the log option to `false`. You can do something sort of like this, depending upon your setup:\n\n```javascript\napp.use(require('webpack-hot-middleware')(compiler, {\n  log: false\n}));\n```\n\n_Thanks to [webpack-dashboard](https://github.com/FormidableLabs/webpack-dashboard) for this piece of info._\n\n## Demo\n\n### Build success\n\n![success](http://i.imgur.com/MkUEhYz.gif)\n\n### eslint-loader errors\n\n![lint](http://i.imgur.com/xYRkldr.gif)\n\n### babel-loader syntax errors\n\n![babel](http://i.imgur.com/W59z8WF.gif)\n\n### Module not found\n\n![babel](http://i.imgur.com/OivW4As.gif)\n\n## Options\n\nYou can pass options to the plugin:\n\n```js\nnew FriendlyErrorsPlugin({\n  compilationSuccessInfo: {\n    messages: ['You application is running here http://localhost:3000'],\n    notes: ['Some additional notes to be displayed upon successful compilation']\n  },\n  onErrors: function (severity, errors) {\n    // You can listen to errors transformed and prioritized by the plugin\n    // severity can be 'error' or 'warn'\n  },\n  // should the console be cleared between each compilation?\n  // default is true\n  clearConsole: true,\n\n  // INFO:    all logs\n  // WARNING: warnings and errors\n  // ERROR:   only errors\n  // SILENT:  no log\n  logLevel: true,\n\n  // base: default\n  // consola: consola adapter\n  // can also be npm package name or reporter object\n  reporter: 'consola'\n\n  // add formatters and transformers (see below)\n  additionalFormatters: [],\n  additionalTransformers: []\n})\n```\n\n## Adding desktop notifications\n\nThe plugin has no native support for desktop notifications but it is easy\nto add them thanks to [node-notifier](https://www.npmjs.com/package/node-notifier) for instance.\n\n```js\nvar NotifierPlugin = require('@nuxt/friendly-errors-webpack-plugin');\nvar notifier = require('node-notifier');\nvar ICON = path.join(__dirname, 'icon.png');\n\nnew NotifierPlugin({\n    onErrors: (severity, errors) => {\n      if (severity !== 'error') {\n        return;\n      }\n      const error = errors[0];\n      notifier.notify({\n        title: \"Webpack error\",\n        message: severity + ': ' + error.name,\n        subtitle: error.file || '',\n        icon: ICON\n      });\n    }\n  })\n]\n```\n\n## API\n\n### Transformers and formatters\n\nWebpack's errors processing, is done in four phases:\n\n1. Extract relevant info from webpack errors. This is done by the plugin [here](https://github.com/nuxt/friendly-errors-webpack-plugin/blob/master/src/core/extractWebpackError.js)\n2. Apply transformers to all errors to identify and annotate well know errors and give them a priority\n3. Get only top priority error or top priority warnings if no errors are thrown\n4. Apply formatters to all annotated errors\n\nYou can add transformers and formatters. Please see [transformErrors](https://github.com/nuxt/friendly-errors-webpack-plugin/blob/master/src/core/transformErrors.js),\nand [formatErrors](https://github.com/nuxt/friendly-errors-webpack-plugin/blob/master/src/core/formatErrors.js)\nin the source code and take a look a the [default transformers](https://github.com/nuxt/friendly-errors-webpack-plugin/tree/master/src/transformers)\nand the [default formatters](https://github.com/nuxt/friendly-errors-webpack-plugin/tree/master/src/formatters).\n\n### Customize Reporters\n\nReporter is a class for generating output of errors messages, structure is:\n\n1. Include following levels log methods: `success`, `info`, `note`, `warn`, `error`.\n1. Include method `clearConsole` for clearing the terminal console.\n\nYou can take a look at source code as example [base reporter](https://github.com/nuxt/friendly-errors-webpack-plugin/blob/master/src/reporters/base.js)\n","_attachments":{},"homepage":"https://github.com/nuxt/friendly-errors-webpack-plugin#readme","bugs":{"url":"https://github.com/nuxt/friendly-errors-webpack-plugin/issues"},"license":"MIT"}