andywer / ideabox

Place to collect techy ideas and get feedback.
1 stars 1 forks source link

Nicer webpack config: Functional and pluggable #4

Closed andywer closed 7 years ago

andywer commented 7 years ago

Just some quick thought:

const webpackConfig = [
  baseConfig(),
  devServer({ port: 1234 })
].reduce(
  (config, configExtender) => Object.assign(config, configExtender(config)),
  {}
)

const defaultDevServer = devServer({ port: 1234 })

[
  ...
  defaultDevServer
]
andywer commented 7 years ago

See https://github.com/andywer/webpack-blocks for a draft.

andywer commented 7 years ago

Ohh yeah, webpack-blocks it is.