ericclemmons / start-server-webpack-plugin

Automatically start your server once Webpack's build completes.
MIT License
158 stars 26 forks source link

docs(readme): reference webpack-config-utils #6

Closed kentcdodds closed 8 years ago

kentcdodds commented 8 years ago

Just for funzies :)

wmertens commented 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…

ericclemmons commented 8 years ago

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!