Closed kentcdodds closed 8 years ago
Hmmm, so you're proposing a dependency for a prettier version of:
// utilizing the webpack 2 function API: `webpack --env.dev`
export default env => {
const isDev = env === 'development'
return {
// ...
plugins: [
isDev && new StartServerPlugin()
].filter(Boolean),
}
};
Not sure if that is a great tradeoff…
I'm a fan of webpack-config-utils
, but want to avoid the plugin appearing more complex by including other libs. I'm sure you understand how quickly people write off projects by scrolling through and seeing "too much code!" without reading :shrug:
At the very least, I definitely should add it to a "Related Projects" section for @terse/webpack
along with webpack-blocks
so more users are aware!
Just for funzies :)