Skip to content

docs(devServer): clarify devServer "open" option description #1890

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

Merged
merged 7 commits into from
Dec 18, 2018

Conversation

Simek
Copy link
Contributor

@Simek Simek commented Mar 8, 2018

Added information that you can also use browser name in the config file.

Added information that you can also use browser name in the config file.
chenxsan and others added 2 commits March 13, 2018 13:51
+ new webpack.DefinePlugin({
+ 'process.env.NODE_ENV': JSON.stringify('production')
+ })
]
})
});
Copy link
Member

Choose a reason for hiding this comment

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

Hi @Simek, thanks for your contribution. As for webpack v4 we want users to rely on mode and not define manually the NODE_ENV variable since the default produciton mode does it for them.

Can you change this code snippet? After that I think it would be good to merge.

Copy link
Member

@jeremenichelli jeremenichelli Jun 3, 2018

Choose a reason for hiding this comment

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

Even if you can do some proof reading to the article and see if we can tip that feature, bonus points :)

Copy link
Member

Choose a reason for hiding this comment

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

@Simek Any update on this? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jackfranklin @dhruvdutt Can you clarify what exact changes you would like me to implement in this PR? I've seen @chenxsan and @RasmusFonseca have added commits/small fixes there and your comments seems for me related to that portion of changes.

Copy link
Member

Choose a reason for hiding this comment

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

My comment is that the guide suggests the user to manually configure uglify plugin and NODE_ENV while mode: 'production' does all that out of the box.

Copy link
Contributor Author

@Simek Simek Jun 13, 2018

Choose a reason for hiding this comment

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

@jeremenichelli I've know that since v4 there is a simplified mode option, but how's it's related to clarifying "open" option for devServer? This shouldn't be fixed or resolved in a separate Issue/PR?

Copy link
Member

Choose a reason for hiding this comment

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

Ugh sorry GitHub is double highlighting the diff on the documentation so I though you were adding those lines, my bad. Also My handle @jeremenichelli, let's not spam Jack here 😉

@montogeek
Copy link
Member

@jeremenichelli It this one OK to merge?

Copy link
Member

@jeremenichelli jeremenichelli left a comment

Choose a reason for hiding this comment

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

Just found one small typo. Rest looks good @montogeek

@@ -325,7 +326,7 @@ __project__
|- /node_modules
```

With the loader configured and fonts in place, you can use incorporate them via an `@font-face` declaration. The local `url(...)` directive will be picked up by webpack just as it was with the image:
With the loader configured and fonts in place, you can incorporate them via an `@font-face` declaration. The local `url(...)` directive will be picked up by webpack just as it was with the image:
Copy link
Member

Choose a reason for hiding this comment

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

it should be ... a font face declaration, not an

@montogeek
Copy link
Member

@Simek Friendly ping

@Simek
Copy link
Contributor Author

Simek commented Dec 18, 2018

@montogeek How could I help you?

@montogeek
Copy link
Member

@Simek Regarding @jeremenichelli requested change.

@Simek
Copy link
Contributor Author

Simek commented Dec 18, 2018

@montogeek Unfortunately I'm not the author of reviewed sentences or changes.

If you are not able to fix that, I'm going to look on this later this evening.

@montogeek
Copy link
Member

I see, it is out of the scope then.

@montogeek montogeek merged commit 0341516 into webpack:master Dec 18, 2018
@montogeek
Copy link
Member

Thanks!

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.

6 participants