Skip to content

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

Draft
markosandalj wants to merge 1 commit intomasterfrom
NGSTACK-870-vite
Draft

NGSTACK-870 implement vite for asset bundleing instead of webpack#196
markosandalj wants to merge 1 commit intomasterfrom
NGSTACK-870-vite

Conversation

@markosandalj
Copy link
Copy Markdown
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
Comment thread assets/sass/style.scss

// Accessibility
@import 'accessibility';
@import 'accessibility'; No newline at end of file
Copy link
Copy Markdown
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.

Comment thread composer.json
"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
Copy Markdown
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?

Comment thread package.json
@@ -1,84 +1,90 @@
{
"browserslist": {
Copy link
Copy Markdown
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

Comment thread symfony.lock
@@ -1,4 +1,61 @@
{
"babdev/pagerfanta-bundle": {
Copy link
Copy Markdown
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.

Comment thread vite.config.js
@@ -0,0 +1,32 @@
import { defineConfig, loadEnv } from 'vite';
Copy link
Copy Markdown
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
Copy Markdown
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