Commit 151c65a5 authored by wildfirecode13's avatar wildfirecode13

Update README.md

parent 6cfa43c9
...@@ -26,6 +26,14 @@ var bg: FYGE.Sprite = new FYGE.Sprite(); ...@@ -26,6 +26,14 @@ var bg: FYGE.Sprite = new FYGE.Sprite();
this.addChild(bg); this.addChild(bg);
``` ```
# 发布 # react环境测试
- project/src/canvas/game/package.json增加script "buildTSAndCopy": "webpack --config webpack.prod.js && node scripts/mergeJs && node scripts/copyJs" - project/src/canvas/game/package.json增加script "buildTSAndCopy": "webpack --config webpack.prod.js && node scripts/mergeJs && node scripts/copyJs"
- project/src/canvas/game下执行 npm run buildTSAndCopy - project/src/canvas/game下执行 npm run buildTSAndCopy
- 修改project/src/app.jsx
- ```js
- render() {
return (
<PageCanvas></PageCanvas>
);
}
- ```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment