This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HARP-12728: Add support for webpack5 (#1917)
* HARP-12623: Add support for webpack5 This change updates the webpack configurations to 5.2.0. Signed-off-by: Roberto Raggi <[email protected]> Signed-off-by: Jonathan Stichbury <[email protected]> * HARP-12623 More fixes Signed-off-by: Jonathan Stichbury <[email protected]> * HARP-12623: Upgrade webpack-cli to 4.2.0. webpack-cli 4.1.0 has some issue with "webpack serve". * HARP-12623: Define Node.js' process variables using webpack plugins. Webpack 5 does not include a polyfill for Node.js process. process.env.NODE_ENV and any other environment variables must be define using the EnvironmentPlugin. process.platform is defined using the DefinePlugin. * HARP-12623: Fix MapViewTest and ThemeLoaderTest. They were failing in windows due to calls to process.cwd() done by path module's path.relative() function. * HARP-12623: Upgrade to webpack 5.9.0. * HARP-12623: Enable webpack 5 persistent cache. - Workaround webpack 5 bug by prepending "./" to the webpack config file path, see webpack/webpack#11643 - Add webpack cache to travis cached directories. * HARP-12623: Speed up tests build. Move ts typechecking to separate process using ForkTsCheckerWebpackPlugin. * HARP-12623: Update HtmlWebpackPlugin. Version 4.3.0 was always adding "auto" path prefix to scripts in generated html files. Co-authored-by: Jonathan Stichbury <[email protected]> Co-authored-by: Andres Mandado <[email protected]>
- Loading branch information
1 parent
04e0620
commit df73a5e
Showing
15 changed files
with
658 additions
and
1,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ node_js: | |
- "12" | ||
cache: | ||
yarn: true | ||
directories: | ||
- "node_modules/.cache" | ||
|
||
addons: | ||
chrome: stable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.