使用github的Pages免费部署前端项目以原生html文件为例

首先先把项目提交到你的github远程仓库。具体如何提交我不做解释
在这里插入图片描述
在这里插入图片描述
如果是vue2项目(vue.config.js),还是如下配置:
新建一个仓库用来放dist下的产物

module.exports = {
    
    
  publicPath: "./",
  devServer: {
    
    
    disableHostCheck: true, // 关闭host检查
  },
};

猜你喜欢

转载自blog.csdn.net/weixin_49295874/article/details/128633221
今日推荐