Skip to content

Fix build warnings and improve tooling setup (Sass, Vite, npm) - #1

Open
luislobo9b wants to merge 4 commits into
JorgeCapillo:mainfrom
luislobo9b:main
Open

Fix build warnings and improve tooling setup (Sass, Vite, npm)#1
luislobo9b wants to merge 4 commits into
JorgeCapillo:mainfrom
luislobo9b:main

Conversation

@luislobo9b

Copy link
Copy Markdown
  • Migrate Sass @import to @use/@forward to resolve deprecation warnings
  • Prevent horizontal scrollbar by replacing 100vw with 100% in layout styles
  • Add esbuild and @rollup/pluginutils and upgrade vite-plugin-glsl to 1.6.0 to fix Vite peer-dependency warnings
  • Add allowScripts to approve postinstall scripts for @parcel/watcher and esbuild (npm >= 10.2.0)

Vite 4.x with vite-plugin-glsl was warning about missing peer deps:
- \`[vite-plugin-glsl] Warning: 'esbuild' was not found\`
- \`[vite-plugin-glsl] Warning: '@rollup/pluginutils' was not found\`

Added both as devDependencies and upgraded vite-plugin-glsl from 1.3.0 to 1.6.0
to resolve the peer dependency warnings during \`npm run dev\` and \`npm run build\`.
Used \`npm approve-scripts @parcel/watcher esbuild\` to allow install scripts
for @parcel/watcher@2.5.6 and esbuild@0.28.1/@0.18.20. These packages have
postinstall scripts that need explicit approval in npm >= 10.2.0.

Without this approval, \`npm install\` fails with warnings about unapproved
install scripts.
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.

1 participant