Skip to content

feat: custom headers option#125

Merged
shellscape merged 2 commits intomasterfrom
feat/headers
Apr 9, 2019
Merged

feat: custom headers option#125
shellscape merged 2 commits intomasterfrom
feat/headers

Conversation

@shellscape
Copy link
Owner

This PR contains:

  • bugfix
  • feature
  • refactor
  • tests
  • documentation
  • metadata

Breaking Changes?

  • yes
  • no

Please Describe Your Changes

Fixes #37 and adds a custom header feature as requested by @kurtextrem.

new WebpackPluginServe({
  headers: {
    'X-Superhero': 'batman'
  }
})

While we have no CI tests in place, I verified locally that this does function correctly.

(Note: we really need to get on a method to test middleware)

@shellscape shellscape merged commit b3770a9 into master Apr 9, 2019
@shellscape shellscape deleted the feat/headers branch April 9, 2019 14:09
smashercosmo pushed a commit to smashercosmo/webpack-plugin-serve that referenced this pull request Jul 23, 2019
* feat: custom headers option

* test: fix validation, nulls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vote: custom headers option support

3 participants