-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Consolidate .yml files into webpacker.yml #403
Changes from 16 commits
dc1e539
eaa5056
f03ed31
c877358
af4be41
58c428d
1702466
099f080
a60d569
32f18cd
91c6c7b
abc53ac
37706a9
f76db0e
1140244
f992607
5e363f3
bb19d26
6cdf5d0
57e082c
3046503
9d3288a
bfab985
c030cf9
6b60766
6cc0600
57e7ecf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Note: You must restart bin/webpack-dev-server for changes to take effect | ||
|
||
default: &default | ||
dev_server_host: localhost | ||
dev_server_port: 8080 | ||
dev_server_https: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thinking more.. Maybe we should move these options to the default: &default
source_path: app/javascript
source_entry_path: packs
public_output_path: packs
...
development:
<<: *default
dev_server:
host: 0.0.0.0
port: 8080
https: false
... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unless someone wanna override it in other environment - cloud9? I guess then we would enter into the same problem we discussed earlier right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've never used cloud9, but I gather that the issue in #176 in wasn't about using a different environment, just configuring the host and port. It looks like apps on cloud9 run in development mode: https://community.c9.io/t/running-a-rails-app/1615 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me neither 😄 Alright, makes sense so lets move the dev server to development only. |
||
|
||
source_path: app/javascript | ||
source_entry_path: packs | ||
public_output_path: packs | ||
|
||
extensions: | ||
- .coffee | ||
- .erb | ||
- .js | ||
- .jsx | ||
- .ts | ||
- .vue | ||
- .sass | ||
- .scss | ||
- .css | ||
- .png | ||
- .svg | ||
- .gif | ||
- .jpeg | ||
- .jpg | ||
|
||
development: | ||
<<: *default | ||
|
||
test: | ||
<<: *default | ||
|
||
public_output_path: packs-test | ||
|
||
production: | ||
<<: *default | ||
|
||
dev_server_host: 0.0.0.0 | ||
dev_server_port: 8080 | ||
dev_server_https: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My vote is to remove these alternate dev server settings from production. People can add them if they're using the dev server in production (for some reason). Also, if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good 👍 |
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.
Is this a necessary change or just better source map 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.
Recommended
source map
option in development