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

fix optimize-stats task #774

Merged
merged 1 commit into from
May 4, 2018
Merged

fix optimize-stats task #774

merged 1 commit into from
May 4, 2018

Conversation

jchip
Copy link
Member

@jchip jchip commented Apr 28, 2018

No description provided.

task: `analyze-bundle -b dist/js/bundle.*.js -s dist/server/stats.json`
task: () => {
const stats = JSON.parse(Fs.readFileSync("dist/server/stats.json"));
const bundle = stats.assetsByChunkName.main.find(x => x.endsWith(".js"));
Copy link
Contributor

Choose a reason for hiding this comment

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

can main be a string?

"main": "web.js?h=11593e3b3ac85436984a",

Copy link
Member Author

Choose a reason for hiding this comment

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

no

@didi0613
Copy link
Contributor

lgtm

@jchip jchip merged commit 2b5c709 into electrode-io:master May 4, 2018
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