The production build takes too long #131
Labels
bug
Something isn't working
enhancement
New feature or request
Optimize
related to optimize command
webpack
stuff related to webpack affecting the dev server or the optimize command
Milestone
Describe the bug
Every time i build for production it takes a really long time because everything is getting built again..
I want to only rebuild the files that have actually been modified since the last build.
possible solution
create a file called builds.json with the following structure:
whenever the build command gets run,
it should first, for each file in the project, check for its last update using
fs.statSync.mtime
and update thelast_update
attribute for the file in the builds.json. Then if the file'slast_update
>last_build
it will get added to an array calledfilesToBuild
.In the start command only the files in the filesToBuild Array should be built.
The text was updated successfully, but these errors were encountered: