Skip to content

Instantly share code, notes, and snippets.

@descovi
Created March 8, 2019 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save descovi/94b949fb9850f6b7eb37f3ed32d41a75 to your computer and use it in GitHub Desktop.
Save descovi/94b949fb9850f6b7eb37f3ed32d41a75 to your computer and use it in GitHub Desktop.
webpacker config for hot reload with docker
development:
<<: *default
host: webpacker
hmr: true
compile: true
# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
host: webpacker
port: 3035
public: localhost:3035
hmr: true
# Inline should be set to true if using HMR
inline: true
overlay: true
compress: true
disable_host_check: true
use_local_ip: false
quiet: false
headers:
'Access-Control-Allow-Origin': '*'
watch_options:
ignored: /node_modules/
@descovi
Copy link
Author

descovi commented Mar 8, 2019

@Arkhanne
Copy link

Arkhanne commented Apr 5, 2019

Hello, I'm trying to configure rails and web packer with docker. Webpacker seems to compile, but the styles are not applied. Any idea? I tried to attach my files but I don't know why I can't do it :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment