This is Wes Craven's New Nightmare!
Why do I even need this horror on every little bit of change? How can I turn off these notifications?!
less-loader applies a Less plugin that passes all queries to the webpack resolver if less could not resolve @import . Thus you can import your Less modules from node_modules .
Webpack v4+ will minify your code by default in production mode .
For simple Webpack projects you can generate a stats file using webpack --json > stats. json . This will create stats. json in your current directory with all the data from your project.
You can use Webpack CLI's --display
option to set the verbosity of the stats output. Here are the available values.
E.g.
--display=minimal
You can add --quiet
and --no-info
to webpack-dev-server's command line: http://webpack.github.io/docs/webpack-dev-server.html#webpack-dev-server-cli
If you use webpack in watch mode, you can put | awk '{if ($0 !~ /^ *\[[0-9]*\]/) {print} else {if ($0 ~ /\[built\]/) {print}}}'
after it, which will print all output except files that were not rebuilt.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With