Commit Graph

95 Commits

Author SHA1 Message Date
Tim Donohue
d634903d0d Remove unnecessary @ts-expect-error, as the bug they are expecting is fixed in webpack 5.95.0. 2024-10-22 11:35:09 -05:00
Kim Shepherd
91b8829ee4 Ignore some paths from file watcher
Watching all these directories can cause systems to exceed
maximum watched files / inotify limits, especially in dev
mode with IDEs etc also watching files.

(cherry picked from commit 8152d39ad0)
2024-09-04 15:47:16 +00:00
Alexandre Vryghem
4e05a5c310 Temporarily ignore type errors from EnvironmentPlugin since type matching is currently too strict
(cherry picked from commit 7dea5f7d98)
2024-09-03 21:38:00 +00:00
Alexandre Vryghem
f261264beb Implemented i18n cache busting
(cherry picked from commit 07a2e333ca)
2023-10-26 16:22:54 +00:00
Michael Spalti
77c19d9fb1 Updated mirador webpack configuration. 2023-05-08 11:54:40 -07:00
Art Lowel
266931f55f Merge remote-tracking branch 'upstream/main' into fully-qualified-sitemap-urls-7.5-next 2023-01-11 17:51:58 +01:00
Art Lowel
5c77f500dc Merge tag 'dspace-7.4' into fully-qualified-sitemap-urls-7.4 2023-01-11 17:39:22 +01:00
Art Lowel
be0b54e058 change sitemap entries in robots.txt to absolute urls 2022-12-01 15:08:58 +01:00
Yury Bondarenko
bde841918c 96252: Transform .json5 to .json in Webpack
This allows us to get rid of the json5 dependency in the main bundle and reduces the size of the i18n files we serve a bit
2022-10-25 21:01:21 +02:00
Yura Bondarenko
7b4716c439 Filter Webpack warnings 2022-06-28 10:55:12 +02:00
Yura Bondarenko
21579d1525 Merge remote-tracking branch 'origin/main' into w2p-90978_Improve-initial-page-load_PR 2022-05-13 09:32:34 +02:00
Michael Spalti
d32566beda Mirador webpack build fix. 2022-04-28 12:38:35 -07:00
Yura Bondarenko
1522c36ed0 Merge remote-tracking branch 'origin/main' into w2p-90978_Improve-initial-page-load_PR 2022-04-28 13:49:39 +02:00
Yura Bondarenko
7e391f0411 90978: Serve pre-compressed static files 2022-04-28 12:16:46 +02:00
Art Lowel
3bc5ee0253 pages loading twice poc
Cherry-picked from original branch started from Angular 13 PR
2022-04-27 11:58:43 +02:00
Yura Bondarenko
bfdda43a48 87968: Update devServer configuration 2022-04-08 17:57:16 +02:00
Yura Bondarenko
0e178ce1bc 87968: Fix missing theme assets
Adapt to changes in https://github.com/webpack-contrib/copy-webpack-plugin
2022-04-08 17:57:15 +02:00
Yura Bondarenko
29d8dd68f4 87968: Remove html-webpack-plugin
After updating to Angular 12, it causes ng serve to fail with
  Conflict: Multiple assets emit different content to the same filename index.html

Confirmed that the application still builds and runs properly without it.

This plugin isn't used by @angular-builders/custom-webpack since Angular 8 (see https://www.justjeb.com/post/customizing-angular-cli-build#viewer-51npg), this is just the first time it's actually causing problems for us.

Removed script-ext-html-webpack-plugin as well since that's an extension to html-webpack-plugin & can't run without it.
2022-04-08 17:57:15 +02:00
Yura Bondarenko
22c5976095 87968: Upgrade to Angular 12 2022-04-08 17:57:15 +02:00
William Welling
10622008c4 refactor config filename and convert to yaml 2021-12-08 14:56:52 -06:00
William Welling
33488ccf40 extend environment and use injected app config 2021-12-07 10:12:27 -06:00
William Welling
71f5b46639 use standard environments 2021-12-06 12:25:37 -06:00
William Welling
c1555326fa build app config 2021-12-03 21:17:36 -06:00
William Welling
d049caa8c0 remove webpack node externals 2021-11-18 05:03:02 -06:00
William Welling
8d66f68dfa remove bundle workaround, update dependencies and build 2021-11-17 22:11:06 -06:00
Michael W Spalti
98571a496c Merge remote-tracking branch 'origin/iiif-mirador' into iiif-mirador 2021-04-20 14:46:44 -07:00
Art Lowel
cbee776fa4 fix issues with path separators in windows 2021-04-02 16:58:37 +02:00
Michael Spalti
c02983c889 Added webpack configuration for mirador. 2021-03-30 10:54:03 -07:00
Art Lowel
1bb2d5da29 add support for static assets in theme folders 2021-03-03 17:43:37 +01:00
Art Lowel
5a6e4b1278 Add support for dynamic themes 2021-03-01 10:38:05 +01:00
Giuseppe Digilio
eed458569f Fix issue with sass-loader options 2020-12-07 14:28:57 +01:00
Art Lowel
8f822ba4f7 add robots.txt 2020-08-12 13:20:11 +02:00
Art Lowel
05a92f8e5b refactor webpack config 2020-08-12 13:19:23 +02:00
lotte
8bf241c182 angular cli 2020-03-18 16:03:40 +01:00
lotte
04cb75e786 upgraded to angular 8 2020-02-13 11:09:20 +01:00
Giuseppe Digilio
62b555beee fixed vulnerabilty with serialize-javascript 2019-12-19 18:22:35 +01:00
Giuseppe Digilio
be445a7bde Fixed error with UglifyJsPlugin during AOT build after upgrade to angular 7 2019-12-19 13:58:24 +01:00
Giuseppe Digilio
66834bb279 remove resolve-url-loader after upgrade to angular 7 2019-12-19 13:57:51 +01:00
Art Lowel
4896c98f9a apply fix to test webpack config as well 2019-12-02 13:46:34 +01:00
Art Lowel
8c2e63c2a7 fix issue where font urls in scss slow down the build 2019-11-27 14:55:18 +01:00
Art Lowel
36e80e3624 Add support for OTF fonts 2019-11-27 13:30:26 +01:00
Art Lowel
b34e636379 Add support for locally hosted fonts 2019-11-22 18:14:02 +01:00
lotte
5bd1e050fe solve issue with backslashes in paths 2019-06-06 13:55:01 +02:00
Art Lowel
25edc3c952 Add support for resources in themes 2019-06-06 10:30:24 +02:00
Art Lowel
99ca2dedea Revert "switch to relative theme paths for windows support"
This reverts commit a5d61312
2019-06-06 09:28:39 +02:00
Art Lowel
a6bb83b4f8 Revert "make the relativethemePath relative to the project root instead of src root"
This reverts commit c6f18674
2019-06-06 09:28:34 +02:00
Art Lowel
2008c8bc92 Revert "always use forward slashes in relative theme paths"
This reverts commit 7fbde900
2019-06-06 09:28:28 +02:00
Art Lowel
7fbde90095 always use forward slashes in relative theme paths 2019-06-05 18:53:24 +02:00
Art Lowel
c6f1867478 make the relativethemePath relative to the project root instead of src root 2019-06-05 18:49:00 +02:00
Art Lowel
a5d6131238 switch to relative theme paths for windows support 2019-06-05 18:25:51 +02:00