将CNAME添加到Vue.js项目

时间:2018-03-13 16:32:01

标签: vue.js github-pages cname

我正在尝试将CNAME文件添加到Vue.js项目(vue cli工具),以便它在根文件夹中部署。我正在使用gh-pages托管,但似乎无法使我的gh-pages分支正确包含CNAME文件。我当前的文件夹结构。

|-site-folder
|  |-build
|  |-config
|  |-dist
|  |-build
|  |-node-modules
|  |-src
|  |  |-CNAME
|  |-static
|-index.html
|-package.json
|-(ect..)

1 个答案:

答案 0 :(得分:0)

CNAME文件需要进入/ dist文件夹。我现在知道/ dist文件夹是什么了,哈哈。