webpack packing path references not generated index

When webpack when packaged in access packed inside the index, an error occurs path

modification method for the
solution: config in the following index.js

   assetsPublicPath: '/',  修改为:   assetsPublicPath: './',

Guess you like

Origin www.cnblogs.com/smart-girl/p/11327295.html