This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Description
I'm working on windows8.1 and have some problems with path.
the generated manifest look a little bad:
{
"application.css": "/packs/application-cf63677c5f4021f40c64b2013d17428c.css",
"application.js": "/packs/application-6a8f00751a437a9bfb81.js",
"images\\logo.png": "/packs/images/logo-b463011bf65683cac7917a30ba072bf8.png"
}
correcting images\logo.png to images/logo.png result in a correct page.
I did open this issue here after some advice on bug rails/webpacker#1101
I'm using:
node 6.11.5
webpack 3.10.0
file-loader 1.1.5
I used https://github.com/zarqman/look_ma_no_sprockets as example. All credits to the author.
I just added:
a image as javascript/images/logo.png and
<img src="<%= asset_pack_path('images/logo.png')%>">
in the layout.
in packs/application.js I added:
require.context('../images/', true, /\.(gif|jpg|png|svg)$/i)
Any advice ?
Regards