elm-webpack-starter
elm-webpack-starter copied to clipboard
Set webpack publicPath to allow for nested url paths
Without explicitly setting publicPath
, webpack builds the output path for main.js
relative to the URL. This works fine for paths such as /
and /posts
, but as soon as the path is nested at least once the request for main.js
404s.