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

Describe keys for dev_server in generated webpacker.yml #201

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

alexeyr-ci1
Copy link
Collaborator

Also fix inline to inline_css in some test files, though it didn't affect results because the default is inline_css: true.

# port: 8080
# Should we use gzip compression?
compress: true
# Note that apps that do not check the host are vulnerable to DNS rebinding attacks
allowed_hosts: "all"
allowed_hosts: 'all'
Copy link
Member

Choose a reason for hiding this comment

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

Why use quotes at all?

Why prefer single?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can remove them, but if we keep them better to have same quotes everywhere (IMHO) and there are more single quotes in this file.

@@ -41,8 +41,14 @@ development:
port: 3035
public: localhost:3035
hmr: false
# Inline should be set to true if using HMR
inline: true
Copy link
Member

Choose a reason for hiding this comment

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

Why removing? In-line is a different unrelated option?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've searched and inline doesn't seem to be used anywhere, only inline_css. Namely, here

case fetch(:inline_css)
but there are no fetch(:inline) calls.

dev_server:
https: false
host: localhost
port: 3035
# Hot Module Replacement updates modules while the application is running without a full reload
# Used instead of the `hot` key in https://webpack.js.org/configuration/dev-server/#devserverhot
Copy link
Member

Choose a reason for hiding this comment

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

We can doc other keys here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My thinking was to document only our own keys, but yes, documenting everything makes sense.

@justin808
Copy link
Member

@alexeyr please resolve conflicts and merge.

@alexeyr-ci1 alexeyr-ci1 changed the title Describe keys different from webpack-dev-server in generated webpacker.yml Describe keys for dev_server in generated webpacker.yml Nov 28, 2022
@justin808 justin808 merged commit 1b7c050 into master Dec 2, 2022
@justin808 justin808 deleted the alexeyr/better-document-dev-server-config branch December 2, 2022 08:24
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.

3 participants