-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Optimize site build by removing sourcemaps #67
Conversation
Brought overall site size from 23MB -> 8.4MB |
...instead of preventing them from being emitted in the first place. This allows our default package builds to still have source maps.
this addresses #39, though probably not ready to close it yet. |
"copy:docs": "cp -r packages/docs/dist docs/docs", | ||
"copy:landing": "cp -r packages/landing/dist/* docs/.", | ||
"build:site": "npm-run-all build:gulp build:landing clean:docs copy:docs copy:landing delete:doc-source-maps", | ||
"clean:docs": "rm -rf docs && git checkout docs/CNAME", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is git checkout docs
enough? would handle future tracked files. just thinking aloud here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so because then you would never be able to remove things from that folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Optimize site build by removing sourcemaps * Just strip external sourcemaps from site ...instead of preventing them from being emitted in the first place. This allows our default package builds to still have source maps.
Add class to logo and release 0.2.11
No description provided.