How to get image that is within a data attrbute with Webpack 2?

后端 未结 2 644
故里飘歌
故里飘歌 2021-01-15 21:58

I am using .pug templates for my HTML and standard src attributes on my images like so:

img(src=`../images/${image}`)
2条回答
  •  囚心锁ツ
    2021-01-15 22:59

    options can still bug with html-loader. You might need to use this instead https://webpack.js.org/plugins/loader-options-plugin/

提交回复
热议问题