-
Notifications
You must be signed in to change notification settings - Fork 23
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 command #610
Comments
Vague implementation steps
|
Note that this will be a minor release. I'd rather do a prerelease and let this bake for a little while to get an idea of the API is right or not. |
Will probably add a convenience shorthand for the use case of bundling node_modules: steal-tools bundle --dev Which should expand to: stealTools.bundle({}, {
filter: "node_modules/**/*",
dest: "dev-bundle.js"
}); |
"steal": {
"map": {
"@dev": "dev-bundle"
}
} |
@m-mujica I would like to extend this out so that we can avoid having to load the The difference between this and what you've done so far is that in this "mode" it would not add the npmPackages, but instead it would leave in the config (and its deps) in the bundle. I think this should be under some different flag. I'm not sure what those flags should be off the top of my head. Maybe something like: Bundles only node_modules: steal-tools bundle --deps Bundles node_modules + package.json!npm (and its deps): steal-tools bundle --dev 🤷♂️ Feel free to explore better names. |
Fixed by #612 |
Use case
Often times you might want to create a bundle that is not associated with a production build. This is just a bundle of modules that can be used by steal.
A common use-case would be bundling dependencies that do not change often (such as dependencies that are npm installed).
API
Two forms:
cli
Node
The text was updated successfully, but these errors were encountered: