-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
OPTIMIZATION: Scan filesystem for which webpack loaders to add to lower startup time #144
Comments
Along these lines I would suggest not taking on a dependency to node-sass, postcss, less, etc. The dependency tree for a stock install of gatsby is quite big leading to long install times. In |
@dvonlehman thanks for the thoughts! My plan atm is to introduce a plugin system so all these options would be moved there and only added if you want sass or less, etc. I'll be posting an RFC once I can find enough time to pull that together. |
There was a noticeable slowdown in Gatsby 0.8 from 0.7 due mostly (I'm assuming) from the addition of several new Webpack loaders. This slowdown will only increase as more file-types get out-of-the-box support. To keep things speedy, it might work well to scan the
pages
directory on startup for which file extensions are there and then use that to choose which loaders to use.The text was updated successfully, but these errors were encountered: