Skip to content

Commit 218f56a

Browse files
committed
manage: Removed friendly-errors-webpack-plugin (not compatible with Webpack 5, not maintained), geowarin/friendly-errors-webpack-plugin#123
Signed-off-by: Jaid <[email protected]>
1 parent bac605d commit 218f56a

File tree

4 files changed

+1
-213
lines changed

4 files changed

+1
-213
lines changed

package-lock.json

+1-205
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"fast-xml-parser": "^3.19.0",
2626
"file-loader": "^6.2.0",
2727
"flatted": "^3.1.1",
28-
"friendly-errors-webpack-plugin": "^1.7.0",
2928
"handlebars": "^4.7.7",
3029
"handlebars-loader": "^1.7.1",
3130
"has-content": "^1.1.1",

src/generateWebpackConfig.js

-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import CopyWebpackPlugin from "copy-webpack-plugin"
55
import ensureArray from "ensure-array"
66
import ensureStart from "ensure-start"
77
import flatted from "flatted"
8-
import FriendlyErrorsWebpackPlugin from "friendly-errors-webpack-plugin"
98
import fs from "fs"
109
import hasContent from "has-content"
1110
import JsdocTsdWebpackPlugin from "jsdoc-tsd-webpack-plugin"
@@ -131,7 +130,6 @@ export default (options = {}) => {
131130
locale: "en-US",
132131
sitemap: false,
133132
googleAnalyticsOnlyInProduction: true,
134-
friendlyErrors: false,
135133
offline: false,
136134
pwa: false,
137135
browserSync: process.env.browserSync,
@@ -286,10 +284,6 @@ export default (options = {}) => {
286284
},
287285
}
288286

289-
if (options.friendlyErrors && env !== "test") {
290-
config.plugins.push(new FriendlyErrorsWebpackPlugin)
291-
}
292-
293287
if (options.clean) {
294288
if (isObject(options.clean)) {
295289
config.plugins.push(new CleanWebpackPlugin(options.clean))

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import generateWebpackConfig from "./generateWebpackConfig"
4848
* @prop {boolean|object} [sitemap=false] For type `webapp`: If `true`, `sitemap-xml-webpack-plugin` will be used to output a `sitemap.xml`. If typeof `object`, this will be used as configuration for SitemapXmlWebpackPlugin constructor.
4949
* @prop {string} [googleAnalyticsTrackingId] For type `webapp`: If typeof `string`, will be used as the Google Analytics tracking id and resolves any occurence of `GOOGLE_ANALYTICS_TRACKING_ID` to given id
5050
* @prop {boolean} [googleAnalyticsOnlyInProduction=true] For type `webapp`: If `true`, option `googleAnalyticsTrackingId` will be ignored in any environment but `production`
51-
* @prop {boolean} [friendlyErrors=false] If `true`, includes `friendly-errors-webpack-plugin`
5251
* @prop {Object} [cepOptions={}] For type `adobeCep`: Additional option values that will be forwarded to `cep-webpack-plugin` constructor
5352
* @prop {Object|boolean} [banner = true] If `true`, includes `pkg-banner-webpack-plugin`. If Object, this will be used as plugin options.
5453
* @prop {Object|boolean} [offline = false] For type `webapp`: If `true`, includes `offline-plugin`. If Object, this will be used as plugin options.

0 commit comments

Comments
 (0)