-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update config for upgrade to webpack-dev-server v4
The config updates for webpack-dev-server v4 are largely based on [1]. The CL further updates Ruby gems, and removes all legacy stuff from handling dynamic assets while developing. Due to CSP and hot-reload, always access the application via `localhost:9002`, the proxy provided by webpack-dev-server, instead of directly opening to the Rails application. [1]: https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
- Loading branch information
Showing
7 changed files
with
41 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Development Notices | ||
|
||
## webpack-dev-server | ||
|
||
To get live asset compilation and hot-reloading, start the webpack-dev-server using `yarn start`, and the Rails application using `bundle exec rails server`. The Rails server will listen on `localhost:9001`, but the active content security policy and because webpack-dev-server does emit actual files, you must open `localhost:9002` to get assets and hot-reloaded. The webpack-dev-server will proxy all request to `localhost:9002` to the Rails app, but handle `/assets` and hot-reloading itself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2716,14 +2716,6 @@ figures@^1.3.5: | |
escape-string-regexp "^1.0.5" | ||
object-assign "^4.1.0" | ||
|
||
[email protected]: | ||
version "6.2.0" | ||
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d" | ||
integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw== | ||
dependencies: | ||
loader-utils "^2.0.0" | ||
schema-utils "^3.0.0" | ||
|
||
[email protected], file-type@^5.2.0: | ||
version "5.2.0" | ||
resolved "https://registry.yarnpkg.com/file-type/-/file-type-5.2.0.tgz#2ddbea7c73ffe36368dfae49dc338c058c2b8ad6" | ||
|