Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(karma-webpack): ensure webpack output paths include a trailing slash #285

Merged
merged 1 commit into from
Dec 14, 2017

Conversation

darsee
Copy link
Contributor

@darsee darsee commented Dec 14, 2017

Prior to #279, the following paths would always end with a slash:

  • webpackOptions.output.publicPath
  • webpackOptions.output.publicPath
  • webpackMiddlewareOptions.publicPath

Fixes #284

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

webpackOptions.output.publicPath, webpackOptions.output.publicPath and webpackMiddlewareOptions.publicPath do not always include a trailing slash, as they did prior to #279.

What is the new behavior?

webpackOptions.output.publicPath, webpackOptions.output.publicPath and webpackMiddlewareOptions.publicPath will always include a trailing slash.

Does this PR introduce a breaking change?

  • Yes
  • No (but it does attempt to fix one!)

If this PR contains a breaking change, please describe the following...

  • Impact:
  • Migration path for existing applications:
  • Github Issue(s) this is regarding:

Other information:

Prior to codymikol#297, the following paths would always end with a slash:
- `webpackOptions.output.publicPath`
- `webpackOptions.output.publicPath`
- `webpackMiddlewareOptions.publicPath`

Fixes codymikol#284
@jsf-clabot
Copy link

jsf-clabot commented Dec 14, 2017

CLA assistant check
All committers have signed the CLA.

@darsee
Copy link
Contributor Author

darsee commented Dec 14, 2017

Just noticed my commit message references #297 instead of #279...

@michael-ciniawsky michael-ciniawsky changed the title fix: ensure webpack paths include a trailing slash fix(karma-webpack): ensure webpack output paths include a trailing slash Dec 14, 2017
Copy link
Contributor

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 @darsee Thx again :)

@joshwiens joshwiens merged commit be2b0e8 into codymikol:master Dec 14, 2017
@darsee
Copy link
Contributor Author

darsee commented Dec 14, 2017

Happy to help 👍

@joshwiens
Copy link
Contributor

@darsee - Available on npm as [email protected]

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.

Regression in v2.0.8 using webpack file-loader
4 participants