vue- project packaging pre-production deployment environment Note!

Our written in native code, and then packaged need to modify the relevant configuration file on the front line, otherwise the project can not function properly, the main path is wrong, you can not find the relevant documents.

1. Modify the config> index.js (below)

2. In the build> utils.js place in the following figure Add publicPath: "../../" can be.

Good modify the above two points, you can run the packaged deployment project.

Guess you like

Origin www.cnblogs.com/luxiaoxing/p/11505164.html