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

Optimize site build by removing sourcemaps #67

Merged
merged 2 commits into from
Nov 10, 2016

Conversation

themadcreator
Copy link
Contributor

No description provided.

@themadcreator
Copy link
Contributor Author

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.
@blueprint-bot
Copy link

Just strip external sourcemaps from site

Preview: docs
Coverage: core | datetime

@giladgray
Copy link
Contributor

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",
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

@giladgray giladgray left a comment

Choose a reason for hiding this comment

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

LGTM

@themadcreator themadcreator merged commit b6a8259 into master Nov 10, 2016
@themadcreator themadcreator deleted the bd/remove-sourcemap-prod-build branch November 10, 2016 22:30
greglo pushed a commit to greglo/blueprint that referenced this pull request Dec 12, 2016
* 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.
peterblazejewicz pushed a commit to peterblazejewicz/blueprint that referenced this pull request Dec 20, 2017
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.

3 participants