Vue-cli: build的疑惑

Created on 13 Oct 2016  ·  1Comment  ·  Source: vuejs/vue-cli

vue-cli生成的Vue.js2.0项目打包之后的dist目录只能放到服务器web容器的ROOT目录下才能运行吗?
怎么样修改打包配置文件 让他能放在非ROOT目录下运行呢?

Most helpful comment

YOUR_REPO/config/index.js

Set build.assetsPublicPath to a relative path:

image

>All comments

YOUR_REPO/config/index.js

Set build.assetsPublicPath to a relative path:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sanderswang picture sanderswang  ·  3Comments

b-zee picture b-zee  ·  3Comments

Gonzalo2683 picture Gonzalo2683  ·  3Comments

DrSensor picture DrSensor  ·  3Comments

BusyHe picture BusyHe  ·  3Comments