-
-
Notifications
You must be signed in to change notification settings - Fork 621
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
Thoughts about version 3.2.0 #726
Comments
Yes, the logo should be removed. For the dependencies, a dep for recursively finding a config was used. Sorry if this causes any trouble. I’ll add a util function for it instead in a week or so after grouping up potential issues. |
I see - thanks for sharing! |
Keeping this open as it's a enhancement issue |
It's worth noting that the use of a A workaround for this (which also stops the console spam) is to use Yarn's |
the new deps are due to
👎 One of the improvements in v3 was less unneeded deps, and this change doesn't follow suit. |
OpenCollective banner stays for reachability. Making logo a bit smaller, maybe I'll write a script for it and remove the dep, who knows :) |
npm install --save webpack-cli version 3.2.1 |
Some user feedback here, I'm not going to update my instances of |
Feel free to use another alternative, nothing stopping you :) |
Thanks, your response motivated me to remove Since all I was using it for was build this is what I switched to: const webpack = require("webpack");
const pkg = require("../package.json");
const config = require("../webpack.config.js");
config.mode = "production";
const compiler = webpack(config);
console.log(`Building ${pkg.name} v${pkg.version}`);
compiler.run((error, stats) => {
if (error) {
console.error(error);
return process.exit(1);
}
console.log(`Built in ${stats.endTime - stats.startTime}ms`);
}); |
@bjornstar above script is catching webpack process errors, but not compilation ones. See https://webpack.js.org/api/node/#error-handling |
An alternative is to install all dependencies using the To enforce this for a project when using Yarn, add |
Using lifecycle scripts to communicate information to your users (when they install the package) feels like an abuse. |
I don't understand. The last version doesn't have the banner. What's the real deal breaking? Please help me to understand |
They’re not happy to have a banner asking for financial help for a software they’re using for free and take for granted :)) |
There's still a banner.
It's not the banner itself that bothers me. It's the place where it was integrated to. Communication to users should not be done via package lifecycle scripts IMO. |
Agreed. Perhaps the CLI could include a small prompt on second or third run, that's only shown once every week/month/... or something?
I agree that there are a significant number of users who hold this mentality with open source in general, but as someone who contributes to the webpack ecosystem (amongst others) with code contributions (and happily no compensation), I find this sweeping generalisation a little frustrating. |
I will change this in a newer release. Sorry for the inconveniences |
Two things I noticed when I ran
npm install
when updatingwebpack-cli
to version3.2.0
:There's now a rather large Open Collective banner being outputted, and 49 new dependencies.
I'm fine with the banner, but a little put off by all those dependencies - seeing I only need it to be able to run
webpack
to build my project.Seeing that people reacted to a much less intrusive banner for
nodemon
(remy/nodemon#1189), perhaps a solution similar to the one @remy merged would be suitable?The text was updated successfully, but these errors were encountered: