search

Home  >  Q&A  >  body text

javascript - webpack packaging problem


The path is the same, but item.purl is looped through the array. Why won’t webpack package them together?

阿神阿神2843 days ago549

reply all(2)I'll reply

  • 为情所困

    为情所困2017-05-16 13:37:46

    Because webpack is not so smart yet. . .

    Webpack can only automatically package image files pointed to by the src attribute of img and the css background-image attribute in the style tag, not inline CSS. . .

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 13:37:46

    purl: require('../assets/xxx.jpg')

    reply
    0
  • Cancelreply