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
bundle assets in slim loader #848
Conversation
add a bundle asset test for slim loader.
# Conflicts: # package.json
lib/build/multi.js
Outdated
}, function(err){ | ||
reject(err); | ||
writeStream.on("data", function(builtResult){ | ||
//this.end(); |
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.
@matthewp dont know whats that function is doing. if i comment it out, it worked for the multibuild, the slim build doesnt have one https://github.com/stealjs/steal-tools/pull/848/files#diff-b016b898f98b8eb1dc4d58c367f1bc38R99
is this.end()
necessary?
the test does not pass because travis-ci runs steal-tools on node 4 and steal-serviceworker supports node 6+ |
We can't drop Node 4 until steal-tools 2.0. Looking at the build error: https://travis-ci.org/stealjs/steal-tools/jobs/279253395 I'm not sure it's a syntax problem... have you tried running it in Node 4 locally? |
remove the integration of serviceworker because transpiling the source script to node 4 cause problems and i dont want to refactor steal-serviceworker. this PR is still blocked by: stealjs/steal-bundler#30 |
1 similar comment
lib/build/multi.js
Outdated
// p = p.then(function (builtResult) { | ||
// return precache(builtResult, options.serviceWorker); | ||
// }); | ||
// } |
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'd rather not leave in commented out code... you never know when we'll be able to uncomment it out, so I think it's better to add it back when/if we are able to integrate steal-serviceworker.
lib/build/slim.js
Outdated
// p = p.then(function (builtResult) { | ||
// return precache(builtResult, options.serviceWorker); | ||
// }); | ||
// } |
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.
Same as above.
# Conflicts: # package.json
blocked by: stealjs/steal-bundler#30
this PR integrates steal-serviceworker
and close #846 and close #825
the code i added can definitely refactored.
but for now we can live with that.
maybe we can create some API for post-plugins like steal-bundler, steal-serviceworker and steal-electon that need the buildResult.
cc @matthewp @m-mujica any thought how we can do this?