tmeasday / storybook-skeleton

3 stars 1 forks source link

Optimization and webpack caching #1

Closed tmeasday closed 3 years ago

tmeasday commented 3 years ago

What can we do to further improve the build performance of this project?

bebraw commented 3 years ago

I think the test here is to set webpack cache use the file system. Reference: https://webpack.js.org/configuration/other-options/#cache . It's defaulting to memory cache by default in development mode but we could set it to file system during a production build specifically. To test, we'll first have to generate non-cached builds and then cached builds. Before the first step, it should remove webpack cache directory.