Vue packaged Record

Vue recorded in the previous article easy integration Shun Web sdk, Packaged here say the problem under
use hubilderwere real machine running

  1. In the config found index.jsto assetsPublicPath: '/'change as shown in FIG.Here Insert Picture Description
  2. Open in the build folder webpack.prod.conf.jsto find the output:configuration to increasepublicPath: './'Here Insert Picture Description
  3. Then execute npm run build, it will generate a distfile, then the file hbuilderis openedHere Insert Picture Description
  4. If a web project, the project needs to be changed APP
    Here Insert Picture Description
  5. Then through the data cable connected to the phone, you can run real machine

If black and white and other problems when you run the real machine, you can carefully review the changes at 1 and 2 record

Guess you like

Origin blog.csdn.net/qq_43128835/article/details/89095754