javascript - There is a problem with the image path after webpack packaging
滿天的星座
滿天的星座 2017-05-19 10:31:50
0
1
426

The homepage was originally opened at http://localhost:8080 port, and everything was normal. After webpack, the homepage directly referenced bundle.js, and the pictures on the homepage were not found.

The project file structure and webpack configuration are as shown

滿天的星座
滿天的星座

reply all(1)
PHPzhong

Try itpublicPath:"/dist/"改成publicPath:""

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template