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

NGSTACK-870 implement vite for asset bundleing instead of webpack #196

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markosandalj
Copy link
Contributor

No description provided.

@markosandalj markosandalj marked this pull request as draft May 3, 2024 17:38
@markosandalj markosandalj requested a review from emodric May 3, 2024 17:39
@@ -97,4 +96,4 @@
@import 'cookie_control';

// Accessibility
@import 'accessibility';
@import 'accessibility';
Copy link
Member

Choose a reason for hiding this comment

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

Missing new line at EOF.

@@ -54,7 +54,8 @@
"netgen/layouts-ibexa": "~1.4.0",
"netgen/layouts-ibexa-site-api": "~1.4.0",
"netgen/layouts-ibexa-relation-list-query": "^1.4",
"netgen/layouts-ibexa-tags-query": "^1.4"
"netgen/layouts-ibexa-tags-query": "^1.4",
"pentatrion/vite-bundle": "^6.4"
Copy link
Member

Choose a reason for hiding this comment

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

Can you please move this just below `"tanoconsulting/ibexa-migration-bundle", to keep extra dependencies not related to Netgen together?

@@ -1,84 +1,90 @@
{
"browserslist": {
Copy link
Member

Choose a reason for hiding this comment

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

Please revert back to 4 spaces, for more relevant diffs and easier comparison to Ibexa version of package.json

@@ -1,4 +1,61 @@
{
"babdev/pagerfanta-bundle": {
Copy link
Member

Choose a reason for hiding this comment

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

Do not commit this change to symfony.lock. Full symfony.lock file is only commited in projects. Here, this file exists only with minimal data to prevent Symfony Flex from destroying the repo on first install, but still allowing fresh recipes to be installed when instantiating a project.

@@ -0,0 +1,32 @@
import { defineConfig, loadEnv } from 'vite';
Copy link
Member

Choose a reason for hiding this comment

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

I suppose we can now remove webpack.config.js and rename webpack.config.ibexa.js to webpack.config.js as is in the default Ibexa install. Install docs also need to be updated to remove/adapt the section for renamed webpack config file.

Copy link
Member

Choose a reason for hiding this comment

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

Together with this, Netgen specific webpack config can be reverted back to Ibexa config in config/packages and removed in config/app/packages.

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