vue-cli生成的Vue.js2.0项目打包之后的dist目录只能放到服务器web容器的ROOT目录下才能运行吗? 怎么样修改打包配置文件 让他能放在非ROOT目录下运行呢?
YOUR_REPO/config/index.js
Set build.assetsPublicPath to a relative path:
build.assetsPublicPath
Most helpful comment
YOUR_REPO/config/index.js
Set
build.assetsPublicPathto a relative path: