webpack 服务器实时重新加载
webpack server live reload
我正在使用 rails 5.2
构建一个 react-rails
应用。
react-rails-hot-loader
is not compatible with rails 5.2
, the live reloding would work with react_on_rails
我正在尝试了解如何配置 webpacker
以实时重新加载
读过
我 运行 ./bin/webpack-dev-server --inline=false
和我的 rails s
在一个单独的终端实例中,但我无法在 webpacker localhost:3035/movies
上显示该站点。浏览器中的输出是 Cannot GET /movies
我刚刚创建了 repository,不知道 webpacker
,非常感谢任何输入。
webpacker 3.3.5
支持热重载
运行 ./bin/webpack-dev-server
和 rails s
在不同的终端允许你使用 hot reloading features
我的理解是 webpacker
开发服务器将向 rails 服务器提供 js
、css
和 image
资产。
该应用程序可在 localhost:3000
(来自 rails server
)使用热重载进行开发。我在 rails s
之前启动了 webpacker
开发服务器
更多文章详细解释了如何配置 webpacker server
https://medium.com/statuscode/introducing-webpacker-7136d66cddfb
https://medium.com/rubyinside/hot-module-reloading-with-webpacker-b663643a60b1https://github.com/justisb/react_on_rails/blob/master/docs/additional-reading/hot-reloading-rails-development.md
https://learnetto.com/tutorials/hot-module-replacement
我正在使用 rails 5.2
构建一个 react-rails
应用。
react-rails-hot-loader
is not compatible with rails 5.2
, the live reloding would work with react_on_rails
我正在尝试了解如何配置 webpacker
以实时重新加载
我 运行 ./bin/webpack-dev-server --inline=false
和我的 rails s
在一个单独的终端实例中,但我无法在 webpacker localhost:3035/movies
上显示该站点。浏览器中的输出是 Cannot GET /movies
我刚刚创建了 repository,不知道 webpacker
,非常感谢任何输入。
webpacker 3.3.5
支持热重载
运行 ./bin/webpack-dev-server
和 rails s
在不同的终端允许你使用 hot reloading features
我的理解是 webpacker
开发服务器将向 rails 服务器提供 js
、css
和 image
资产。
该应用程序可在 localhost:3000
(来自 rails server
)使用热重载进行开发。我在 rails s
webpacker
开发服务器
更多文章详细解释了如何配置 webpacker server
https://medium.com/statuscode/introducing-webpacker-7136d66cddfb https://medium.com/rubyinside/hot-module-reloading-with-webpacker-b663643a60b1https://github.com/justisb/react_on_rails/blob/master/docs/additional-reading/hot-reloading-rails-development.md https://learnetto.com/tutorials/hot-module-replacement