Compiled: webpack about the image path in css and html. Expect html to be in the dist root directory and css file to be in the dist/css folder.

question: about the path of pictures in css and html in webpack.
expectation: html is in the root directory, css files are in the css folder

A directory structure like this

    dist/
    --css/
       --main.css
    --images/
    --index.html

the current solution is to put the index.html and css files in the same directory

Jul.15,2022
Menu