@ev1stensberg and I were just chatting about the default output of --init. We think it needs to be simple and general enough that most users get value out of using it. Ideally, maintaining a decent performance baseline too.
There are a lot of different configs used by CLIs these days.
-
vue-cli webpack template is very comprehensive. At the same time it feels overkill as the default for --init
-
create-react-app uses these react-scripts Webpack configs under the hood. They're again quite comprehensive, but cater to the needs for a full framework workflow
and of course, Webpack has a comprehensive examples directory over on master.
Should we include:
- Boilerplate setup for context, entry, output?
- Automatic vendor bundling?
- Simplest boilerplate for code-splitting?
- Performance budgets setup for you?
webpack.optimize.UglifyJsPlugin?
- Should config be split into dev and prod? or kept a single webpack config file?
- Should loaders for Babel be automatically set up for you? (figure this is common..)
- Setup ExtractTextPlugin to keep CSS extracted to separate cacheable files?
@ev1stensberg and I were just chatting about the default output of
--init. We think it needs to be simple and general enough that most users get value out of using it. Ideally, maintaining a decent performance baseline too.There are a lot of different configs used by CLIs these days.
vue-cli webpack template is very comprehensive. At the same time it feels overkill as the default for
--initcreate-react-app uses these react-scripts Webpack configs under the hood. They're again quite comprehensive, but cater to the needs for a full framework workflow
and of course, Webpack has a comprehensive examples directory over on master.
Should we include:
webpack.optimize.UglifyJsPlugin?