You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If webpack-cli adds on top of raw webpack some value in the shape of self-contained functions like "add" or "serve", not only arg-passing glue, then maybe it makes sense to make these functions available and importable as a library.
Hi @sompylasar , we're closing this. We're adding a monorepo later, which will make this a bit better for you, as you can hook up this functionality yourself!
If
webpack-cli
adds on top of rawwebpack
some value in the shape of self-contained functions like "add" or "serve", not only arg-passing glue, then maybe it makes sense to make these functions available and importable as a library.Examples:
require('webpack-cli').add(otherArgs) // -> Promise<WebpackCliAddResult>
require('webpack-cli').serve(otherArgs) // -> Promise<WebpackCliServerInstance>
.Alternatives:
webpack
CLI process with the args, parse output.Pros:
Cons:
Started here https://twitter.com/sompylasar/status/943993394115657728
The text was updated successfully, but these errors were encountered: