diff --git a/config/dev.exs b/config/dev.exs index 16da50e6..d1dd5f2f 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -15,7 +15,14 @@ config :philomena, PhilomenaWeb.Endpoint, code_reloader: true, check_origin: false, watchers: [ - npm: ["run", "watch", cd: Path.expand("../assets", __DIR__)] + node: [ + "node_modules/webpack/bin/webpack.js", + "--mode", + "development", + "--watch", + "--watch-options-stdin", + cd: Path.expand("../assets", __DIR__) + ] ] # ## SSL Support diff --git a/docker/app/run-development b/docker/app/run-development index 9a50ab3e..8f1440cd 100755 --- a/docker/app/run-development +++ b/docker/app/run-development @@ -19,8 +19,6 @@ background() { ( cd /srv/philomena/assets npm install -# why is javascript so terrible -node_modules/.bin/webpack ) # Always install mix dependencies