vue page picture does not appear to solve

In doing the new configuration interface, implemented in the framework of vue, the configuration page image when found to have a picture of the page, enter the path obviously was right but the picture is not displayed

phenomenon:

  network resources are not being given page, and status code or even 200, point preview inside there was nothing behind an input, just enter what words are found appearing 200

Solution:

  Configuring static resources in webpack inside path

   1. Find vue.config.js

   2, in module.exports below which added a key devServer

contentBase:path.join(_dirname,'src')

What this means is, webpack-dev-server uses the current path as the path to the requested resource

 

About contentBase, refer to the article

https://www.jianshu.com/p/e547fb9747e0

Guess you like

Origin www.cnblogs.com/pengfei25/p/10941672.html