Serving root level static assets when a match all route

It also depends on the version of CopyWebpackPlugin… Phoenix use 5.x syntax, but if You are using 6.x branch of the webpack plugin, You need to update webpack.config.js to…

# old syntax
new CopyWebpackPlugin([{ from: "static/", to: "./" }]),

# new 6.x syntax
new CopyWebpackPlugin({
 patterns: [{ from: "static/", to: "./" }]
}),

This plugin is in charge of copying what is in assets/static to priv/static. You should not touch priv/static, and just put into assets/static