Commit 8dbf83d0 authored by wildfirecode13's avatar wildfirecode13

1

parent 08e554f2
...@@ -3,15 +3,15 @@ import ReactDOM from "react-dom"; ...@@ -3,15 +3,15 @@ import ReactDOM from "react-dom";
import "./app.less"; import "./app.less";
import { MOCK_STATUS } from '../sparkrc'; import { MOCK_STATUS } from '../sparkrc';
MOCK_STATUS && (require('../mock/index')); MOCK_STATUS && (require('../mock/index'));
import MD from './MD'; import MD from '../MD';
MD(); MD();
//此处为spark-cli动态生成 //此处为spark-cli动态生成
import Pagemycanvaspage from "./pages/pagemycanvaspage/pagemycanvaspage.jsx"; import PageCanvas from "./pages/pagecanvas/pagecanvas.jsx";
class App extends Component { class App extends Component {
render() { render() {
return ( return (
<Pagemycanvaspage></Pagemycanvaspage> <PageCanvas></PageCanvas>
); );
} }
} }
......
This diff is collapsed.
This diff is collapsed.
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
"watch": "webpack --watch", "watch": "webpack --watch",
"dev": "webpack-dev-server --open --config webpack.dev.js --host 0.0.0.0", "dev": "webpack-dev-server --open --config webpack.dev.js --host 0.0.0.0",
"buildTS": "webpack --config webpack.prod.js && node scripts/mergeJs", "buildTS": "webpack --config webpack.prod.js && node scripts/mergeJs",
"buildTSAndCopy": "webpack --config webpack.prod.js && node scripts/mergeJs && node scripts/copyJs",
"copyJs": "node scripts/copyJs" "copyJs": "node scripts/copyJs"
}, },
"author": "MrKwon", "author": "MrKwon",
......
This diff is collapsed.
...@@ -6,7 +6,7 @@ var fs = require("fs"); ...@@ -6,7 +6,7 @@ var fs = require("fs");
// fs.readFileSync("./output.js") // fs.readFileSync("./output.js")
// ) // )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/'; // var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
var endPath = 'D:/duibaGame/淘宝项目/babycareXiaoxiaoleTBminiTry/client/pages/index/'; var endPath = '/Users/wanghongyuan/hello_canvas/project/src/pages/pagecanvas/';
var version = Math.round(new Date().getTime() / 1000); var version = Math.round(new Date().getTime() / 1000);
// fs.writeFileSync(endPath + "output." + version + ".js", fs.readFileSync("./released/output.js")); // fs.writeFileSync(endPath + "output." + version + ".js", fs.readFileSync("./released/output.js"));
fs.writeFileSync(endPath + "output.js", fs.readFileSync("./released/output.js")); fs.writeFileSync(endPath + "output.js", fs.readFileSync("./released/output.js"));
......
This diff is collapsed.
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