微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在github页面的react网页中进行更改?

如何解决如何在github页面的react网页中进行更改?

我已经在private void animateFocusRing(float x,float y) { ImageView focusRing = findViewById(R.id.focusRing); // Move the focus ring so that its center is at the tap location (x,y) float width = focusRing.getWidth(); float height = focusRing.getHeight(); focusRing.setX(x - width / 2); focusRing.setY(y - height / 2); // Show focus ring focusRing.setVisibility(View.VISIBLE); focusRing.setAlpha(1F); // Animate the focus ring to disappear focusRing.animate() .setStartDelay(500) .setDuration(300) .alpha(0F) .setListener(new Animator.AnimatorListener() { @Override public void onAnimationEnd(Animator animator) { focusRing.setVisibility(View.INVISIBLE); } // The rest of AnimatorListener's methods. }); } 分支中成功部署了我的反应网页。有我的主要源文件,请看Main branch。部署之后,分支main包含所有必需的文件,其中包含一个静态文件夹,并且所有文件在这里gh-pages branch看看。

但是,每当我在gh-pages分支中进行更改时,它都不会反映该网页。有什么办法可以推动我的所有更改?

恐怕我无法将更改推送到main分支,因为它具有完全不同的文件

如何进行这些更改?

我遵循了这些git命令,但是没有用

gh-pages

引自here

预先感谢...

解决方法

确保您的package.json文件中包含这些脚本,然后就可以运行npm run deploy

"scripts": {
//...
"predeploy": "npm run build","deploy": "gh-pages -d build"
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。