Skip to content

Use path.join() when specifying output directory#178

Merged
TheLarkInn merged 1 commit into
webpack:masterfrom
pdehaan:i177
Aug 27, 2017
Merged

Use path.join() when specifying output directory#178
TheLarkInn merged 1 commit into
webpack:masterfrom
pdehaan:i177

Conversation

@pdehaan

@pdehaan pdehaan commented Aug 14, 2017

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Always use path.resolve() when writing the output.path.

Did you add tests for your changes?
Nope.

If relevant, did you update the documentation?
Nope.

Summary

Previously, using the default value of "dist" would correctly use path.resolve() when specifying an output path, whereas specifying a custom path would use that path directly without path.resolve(). This PR should make it more consistent. 🤞

Does this PR introduce a breaking change?

Nope.

Other information

Fixes #177

@jsf-clabot

jsf-clabot commented Aug 14, 2017

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thanks 💙

@TheLarkInn
TheLarkInn merged commit eab9337 into webpack:master Aug 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webpack-cli init creates invalid config w/ Webpack v3.5.4: configuration.output.path: The provided value "public" is not an absolute path!

4 participants