Update "Adding NPM dependencies" guide for Shopware 6.7 Vite migration#2246
Draft
Update "Adding NPM dependencies" guide for Shopware 6.7 Vite migration#2246
Conversation
1 task
- Remove outdated webpack-based approach for the Administration - Add new Administration section explaining Vite handles npm package resolution automatically - Add optional vite.config.mts example for custom configuration - Keep Webpack approach for the Storefront (still webpack-based) - Update build commands (composer build:js:admin for admin, ./bin/build-storefront.sh for storefront) - Remove outdated YouTube video reference showing webpack approach - Add link to Webpack to Vite migration guide Agent-Logs-Url: https://github.com/shopware/docs/sessions/07bcf0eb-b3cc-4003-919c-f691029a5fd0 Co-authored-by: Isengo1989 <8600299+Isengo1989@users.noreply.github.com>
- Add note clarifying that vite.config.mts is placed in src/ (next to entry file) while package.json stays in administration/ - Replace placeholder absolute path with realistic relative path in alias example Agent-Logs-Url: https://github.com/shopware/docs/sessions/07bcf0eb-b3cc-4003-919c-f691029a5fd0 Co-authored-by: Isengo1989 <8600299+Isengo1989@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update docs for npm dependencies based on vue update in 6.7
Update "Adding NPM dependencies" guide for Shopware 6.7 Vite migration
Apr 16, 2026
Contributor
|
Jannis Leifeld (@jleifeld) I let Copilot take a look at this -> #2244 Could you please cross-verify / refine this? We do have a migration guide, but never adjusted this article. If this was on purpose a short info would be helpful 🙂 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The NPM dependencies guide was outdated: it described registering packages via
webpack.config.jsfor both Administration and Storefront, but the Administration migrated from Webpack to Vite in 6.7.Changes
node_modulesautomatically via standard Node.js resolution — no custom build config required for basic npm usagevite.config.mtsexample for custom config (e.g. aliases), clarifying it lives insrc/next to the entry file whilepackage.jsonstays atadministration/:webpack.config.jsinbuild/composer build:js:adminfor admin (replaces./bin/build-administration.sh),./bin/build-storefront.shfor storefrontWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
developer.shopware.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either: