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

Feature vite #121

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Feature vite #121

wants to merge 7 commits into from

Conversation

myovchev
Copy link
Contributor

@myovchev myovchev commented Oct 29, 2024

Summary

Add Vite build module. Fix Sass imports. Update the bundle configuration to work with both Webpack and Vite.

A beta feature, until @apostrophecms/vite is marked as stable.

What are the specific steps to test this change?

  • Build works as expected for both dashboard and sites (task and injected properly in production mode)
  • HMR works for client side UI code by default. Admin UI HMR works if asset option hmr is set to apos for both dashboard and sites.

What kind of change does this PR introduce?

(Check at least one)

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

package.json Outdated
@@ -21,6 +21,7 @@
"author": "Apostrophe Technologies",
"license": "UNLICENSED",
"dependencies": {
"@apostrophecms/vite": "github:apostrophecms/vite",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FIXME: change to actual version after release.

package.json Outdated
@@ -32,7 +33,7 @@
"@opentelemetry/semantic-conventions": "^1.24.1",
"@tiptap/extension-text-style": "^2.4.0",
"accordion-js": "^3.3.4",
"apostrophe": "^4.5.2",
"apostrophe": "github:apostrophecms/apostrophe",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FIXME: change to actual version after release.

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