Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D deichman
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • digibib
  • deichman
  • Merge requests
  • !627

Merged
Created Aug 10, 2022 by Tom Adam@tomadamMaintainer

DEICH-6325 - Upgrade to WebPack 5 + cache busting 馃殌

  • Overview 4
  • Commits 4
  • Changes 9
  • Upgraded to webpack 5 馃帀

    • Fixed module reload for WebPack 5, however could only make it work with sockjs.
    • Added automatic cleanup for public folder - otherwise it gets full with different bundle cache busted bundle versions.
  • Added cache busting 馃帀

    • The webpack config was modified to add contenthash to the generated bundle names (both js, and css). HtmlWebpackPlugin is used to generate public/index.html based on template stored in ./assets/index.html.
    • global.css was moved inside the src/css folder, and now included in App.svelte. All declarations were converted to have global scope. This was required to avoid caching global.css, thus invalidating cache busting partially.

Closes DEICH-6325

Edited Aug 10, 2022 by Tom Adam
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: DEICH-6325