Skip to content

Conversation

saaqi
Copy link

@saaqi saaqi commented Dec 25, 2023

Changes Made:

This pull request introduces crucial updates to enhance the project's build process. Specifically, I have forked the repository and implemented an updated configuration for Vite to seamlessly integrate PostCSS with PurgeCSS. This ensures that only necessary styles are included in the final build, significantly reducing the overall file size and improving performance.

Testing
I have thoroughly tested these changes to ensure compatibility with the existing codebase. The project builds successfully, and I have verified that the application functions as expected with the updated styling.

// `${bootstrap}/js/dist/collapse.js`,
// `${bootstrap}/js/dist/dropdown.js`,
// `${bootstrap}/js/dist/modal.js`,
`${bootstrap}/js/dist/offcanvas.js`,
Copy link
Member

Choose a reason for hiding this comment

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

Not sure this is a good default solution. One needs to know what to keep and what not.

Copy link
Author

Choose a reason for hiding this comment

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

We could use the entire bootstrap Javascript file but it increases the output size by a few kilobytes.

We can use this
bootstrap/dist/us/bootstrap.bundle.js

Copy link
Author

Choose a reason for hiding this comment

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

I introduced flexibility for users by allowing them to selectively include individual JS modules or opt for the entire Bootstrap bundle JS. This gives users the option to tailor their build based on their specific module requirements.

Reverted the inclusion fo type: module setting made in vite.config.js

Additionally, I introduced flexibility for users by allowing them to selectively include individual JS modules or opt for the entire Bootstrap bundle JS. This gives users the option to tailor their build based on their specific module requirements.

This approach aims to enhance user experience and provides more control over the project configuration.
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