From e7a10519bfc0f3a0bbd0b7e484be54d6c5a54965 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Mon, 12 Oct 2020 15:03:27 +0200 Subject: [PATCH] HARP-12466: Fix initialization of the webpack's stats. (#1894) The `stats` object requires tha exclude patterns to be relative paths. Signed-off-by: Roberto Raggi --- @here/harp-examples/webpack.config.js | 2 +- @here/harp-webpack-utils/scripts/HarpWebpackConfig.ts | 2 +- docs/GettingStartedAngular.md | 2 +- webpack.tests.config.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/@here/harp-examples/webpack.config.js b/@here/harp-examples/webpack.config.js index c062b4ee9d..e44fd30cd6 100644 --- a/@here/harp-examples/webpack.config.js +++ b/@here/harp-examples/webpack.config.js @@ -94,7 +94,7 @@ const commonConfig = { stats: { all: false, timings: true, - exclude: "/resources/", + exclude: "resources/", errors: true, entrypoints: true, warnings: true diff --git a/@here/harp-webpack-utils/scripts/HarpWebpackConfig.ts b/@here/harp-webpack-utils/scripts/HarpWebpackConfig.ts index d8cedb7a22..e14a79b4c6 100644 --- a/@here/harp-webpack-utils/scripts/HarpWebpackConfig.ts +++ b/@here/harp-webpack-utils/scripts/HarpWebpackConfig.ts @@ -59,7 +59,7 @@ export function addHarpWebpackConfig(config?: Configuration, harpConfig?: HarpWe stats: { all: false, timings: true, - exclude: "/resources/", + exclude: "resources/", errors: true, entrypoints: true, warnings: true diff --git a/docs/GettingStartedAngular.md b/docs/GettingStartedAngular.md index 3118619cb5..0e68a37639 100644 --- a/docs/GettingStartedAngular.md +++ b/docs/GettingStartedAngular.md @@ -216,7 +216,7 @@ const decoderConfig = { stats: { all: false, timings: true, - exclude: "/resources/", + exclude: "resources/", errors: true, entrypoints: true, warnings: true diff --git a/webpack.tests.config.js b/webpack.tests.config.js index abd808534d..a32ef5b913 100644 --- a/webpack.tests.config.js +++ b/webpack.tests.config.js @@ -142,7 +142,7 @@ const browserTestsConfig = { stats: { all: false, timings: true, - exclude: "/resources/", + exclude: "resources/", errors: true, entrypoints: true, warnings: true