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

Feat/webpack cache #1696

Merged
merged 5 commits into from
Jan 4, 2024
Merged

Feat/webpack cache #1696

merged 5 commits into from
Jan 4, 2024

Conversation

andresz1
Copy link
Member

@andresz1 andresz1 commented Jan 4, 2024

Description

This PR enables caching in Webpack. This should speed up significantly the bundling time when the cache is already generated. It's enabled for both development and production builds. Cache for production builds could be useful to speed up CI.

Example

Starting a development server of a large SSR application

Without cache

Screenshot 2024-01-04 at 11 48 08

With cache

Screenshot 2024-01-04 at 11 48 03

@andresz1 andresz1 marked this pull request as ready for review January 4, 2024 10:53
Copy link
Member

@nucliweb nucliweb left a comment

Choose a reason for hiding this comment

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

👏

@@ -135,6 +135,7 @@ const start = ({packagesToLink, linkAll}) => {
const script = nodemon({
script: `${SERVER_OUTPUT_PATH}/index.js`,
watch: [SERVER_OUTPUT_PATH],
nodeArgs: '--inspect',
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

@andresz1 andresz1 merged commit e62fde4 into master Jan 4, 2024
1 check passed
@andresz1 andresz1 deleted the feat/webpack-cache branch January 4, 2024 12:00
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.

7 participants