- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.5k
Closed
Labels
file loadersfile-loader, fonts, images etc.file-loader, fonts, images etc.
Description
Hello,
I've made a fresh webpacker 4.0.0.rc2 installation and I'm trying to load an image from assets in a rails view
<%= image_pack_tag 'test.jpg' %>The image is located in multiple paths (app/assets/images/test.jpg, app/javascript/images/test.jpg))
I don't see the file would be in the manifest
{
  "application.js": "/packs/application-8cac6ff83dcd20565aa4.js",
  "application.js.map": "/packs/application-8cac6ff83dcd20565aa4.js.map",
  "entrypoints": {
    "application": {
      "js": [
        "/packs/application-8cac6ff83dcd20565aa4.js"
      ],
      "js.map": [
        "/packs/application-8cac6ff83dcd20565aa4.js.map"
      ]
    },
    "hello_vue": {
      "js": [
        "/packs/hello_vue-e8868d6621d6bbe8029c.js"
      ],
      "js.map": [
        "/packs/hello_vue-e8868d6621d6bbe8029c.js.map"
      ]
    }
  },
  "hello_vue.js": "/packs/hello_vue-e8868d6621d6bbe8029c.js",
  "hello_vue.js.map": "/packs/hello_vue-e8868d6621d6bbe8029c.js.map"
}
I though, webpacker 4.0.0rc2 has out-of-box solution for this simple use case. I won't really import the image in application.js. I'd like to use it in the same way as using sprocket.
juice and gferrarocamus
Metadata
Metadata
Assignees
Labels
file loadersfile-loader, fonts, images etc.file-loader, fonts, images etc.