-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Conversation
# 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' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
shakapacker/lib/webpacker/dev_server.rb
Line 59 in 0f688bc
case fetch(:inline_css) |
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@alexeyr please resolve conflicts and merge. |
Also fix
inline
toinline_css
in some test files, though it didn't affect results because the default isinline_css: true
.