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

Akryum picture Akryum  ·  3Comments

JIANGYUJING1995 picture JIANGYUJING1995  ·  3Comments

CodeApePro picture CodeApePro  ·  3Comments

brandon93s picture brandon93s  ·  3Comments

OmgImAlexis picture OmgImAlexis  ·  3Comments