Skip to content

Upgrade build toolchain and fix modern Sass/webpack 5 compatibility#7

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/upgrade-package-and-ui
Draft

Upgrade build toolchain and fix modern Sass/webpack 5 compatibility#7
Copilot wants to merge 2 commits intomasterfrom
copilot/upgrade-package-and-ui

Conversation

Copy link

Copilot AI commented Feb 26, 2026

The build was broken/noisy on modern package versions: 43 Sass deprecation warnings, broken file-loader usage (removed in webpack 5), tilde-prefix imports (~bootstrap) dropped by newer sass-loader, and two npm audit vulnerabilities.

Build config

  • fonts.js / images.js: Replace deprecated file-loader with webpack 5 native asset modules (type: 'asset/resource')
  • sass.js: Add silenceDeprecations for known Bootstrap 5 + Sass migration warnings (import, global-builtin, color-functions, if-function) — Bootstrap hasn't completed its own @use/@forward migration

SCSS fixes

  • _functions.scss, _mixins.scss, _variables.scss, materialize-vendors.scss: Drop ~ prefix on bootstrap/scss/ imports
  • _base.scss: Fix loop iterating $theme-colors (flat map) as if it were nested — replace with $theme-palette (nested main/dark/light map); fix Sass color-in-interpolation warning using '' + $value

Dependencies (package.json / package-lock.json)

  • Remove unused url-loader
  • Restore accidentally missing webpack ^5.98.0 explicit devDependency
  • npm audit fix: resolves cross-spawn (high) and ajv (moderate) → 0 vulnerabilities

Net result: webpack 5.105.3 compiled successfully with 0 warnings, down from 43.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: gabrielsolomon <17990591+gabrielsolomon@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade package to latest version and modernize UI Upgrade build toolchain and fix modern Sass/webpack 5 compatibility Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants