Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

fix: init publicPath to undefined #159

Merged
merged 1 commit into from
Jun 3, 2017

Conversation

joshwiens
Copy link
Member

What kind of change does this PR introduce?

bugfix

Did you add tests for your changes?

If relevant, did you update the README?

Summary
Initializing publicPath to false was preventing the new option from being used with webpack-config-validator

See comment in #145

Does this PR introduce a breaking change?

No

Other information

Fixes #158

Copy link
Contributor

@bebraw bebraw left a comment

Choose a reason for hiding this comment

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

It would be good to write a test (if possible) but I think it's fine.

@joshwiens
Copy link
Member Author

joshwiens commented May 5, 2017

It already has two to cover the feature in question, just changing how we init publicPath because of the issue mentioned in the PR that broke it. The problem was the strict check for false which left either checking for a falsy value which is less than optimal or just changing how we initialize publicPath.

@bebraw
Copy link
Contributor

bebraw commented May 5, 2017

Ok, cool. JS. 👍

Copy link
Member

@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.

@d3viant0ne Thx 👍 :shipit: 😛

@@ -61,7 +61,7 @@ module.exports = function(content) {
}

var publicPath = "__webpack_public_path__ + " + JSON.stringify(url);
if (config.publicPath !== false) {
if (config.publicPath !== undefined) {
Copy link
Member

Choose a reason for hiding this comment

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

if (!config.publicPath) {}

Maybe even 'safer', but enterily a nitpick

@jcperez-ch
Copy link

Any news regarding this bug?

@michael-ciniawsky
Copy link
Member

@d3viant0ne @bebraw Is there anything left to do here/blocking this ? :)

@michael-ciniawsky michael-ciniawsky added this to the 0.11.2 milestone Jun 2, 2017
@michael-ciniawsky michael-ciniawsky changed the title fix: init publicPath to undefined fix: init publicPath to undefined Jun 2, 2017
@bebraw
Copy link
Contributor

bebraw commented Jun 3, 2017

@michael-ciniawsky Nothing that I know of.

@michael-ciniawsky
Copy link
Member

Please semver patch someone when time :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regression: publicPath can't be false
5 participants