Sha256: 5c679fa85712f3f733d9647eab81f45950dc2ace8244648ae3c2ce536c3d93f1

Contents?: true

Size: 1.43 KB

Versions: 15

Compression:

Stored size: 1.43 KB

Contents

# Procfile for development using HMR

web: rails s -p 3000

# Note, hot and live reloading don't work with the default generator setup on
# top of the rails/webpacker Webpack config with server rendering.
# If you have server rendering enabled (prerender is true), you either need to
# a. Ensure that you have dev_server.hmr and dev_server.inline BOTH set to false,
#    and you have this option in your config/initializers/react_on_rails.rb:
#      config.same_bundle_for_client_and_server = true
#    If you have either config/webpacker.yml option set to true, you'll see errors like
#    "ReferenceError: window is not defined" (if hmr is true)
#    "TypeError: Cannot read property 'prototype' of undefined" (if inline is true)
# b. Skip using the webpack-dev-server. bin/webpack --watch is typically
     fast enough.
# c. See the React on Rails README for a link to documentation for how to setup
#    SSR with HMR and React hot loading using the webpack-dev-server only for the
#    client bundles and a static file for the server bundle.

# Run the webpack-dev-server for client and maybe server files
webpack-dev-server: bin/webpack-dev-server

# Keep the JS fresh for server rendering. Remove if not server rendering.
# Especially if you have not configured generation of a server bundle without a hash.
# as that will conflict with the manifest created by the bin/webpack-dev-server
# rails-server-assets: SERVER_BUNDLE_ONLY=yes bin/webpack --watch

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
react_on_rails-12.4.0 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.4.0.rc.0 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.3.0 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.2.0 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.1.0 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.5.beta.0 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.4 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.3 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.3.beta.0 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.2 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.1 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.0 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.0.pre.beta.4 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.0.pre.beta.3 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr
react_on_rails-12.0.0.pre.beta.2 lib/generators/react_on_rails/templates/base/base/Procfile.dev-hmr