Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update vite documentation for migrating the custom webpack config #1674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jleifeld
Copy link
Contributor

We have already quite a bit of documentation for the Vite migration: https://developer.shopware.com/docs/guides/plugins/plugins/administration/system-updates/vite.html

But one thing missing is an example for plugin developer which are using a custom Webpack configuration. They need to convert to a Vite configuration. In many cases this is very individual but the example should just cover the main cases:

  • Move the config from the administration folder to administration/src
  • Rename the config to the vite default standard
  • Implement a alias as an example

@jleifeld jleifeld self-assigned this Jan 24, 2025
return {
resolve: {
alias: {
@example: 'src/example',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@example: 'src/example',
`@example`: 'src/example',

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