yarn build script + rocket passthrough route
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
const React = require("react");
|
||||
const ReactDOM = require("react-dom");
|
||||
|
||||
const main = document.getElementById("main");
|
||||
ReactDOM.render(<h1>Schala web input</h1>, main);
|
||||
const main = (<div>
|
||||
<h1>Schala web input</h1>
|
||||
<p>Write your source code here</p>
|
||||
</div>);
|
||||
|
||||
const rootDom = document.getElementById("main");
|
||||
ReactDOM.render(<h1>Schala web input</h1>, rootDom);
|
||||
|
||||
@@ -14,5 +14,8 @@
|
||||
},
|
||||
"babel": {
|
||||
"presets": ["babel-preset-react", "babel-preset-es2015"]
|
||||
},
|
||||
"scripts": {
|
||||
"build": "browserify main.jsx -t babelify -o bundle.js"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user