Closed
Description
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Yes, setting good defaults.
Describe the solution you'd like
From @sokra :
I tried webpack-cli init
and noticed a few things:
- env preset should be used with
{modules: false}
entry: 0
is generatedoutput.filename
output.chunkFilename
andoutput.path
should be omitted when using the defaultsconst path = require("path")
is missingmode: "production"
already includes the uglifyjs plugin and it should not be added to the plugin (this would uglify twice)plugins: ["syntax-dynamic-import"]
should be added to supportimport()
module.rules.exclude
should bemodule.rules.include: [path.resolve(__dirname, "src")]
instead
Additional context
Most of these are trivial to add, entry: 0
is from the recursive parser part, need some tweaks