File tree 4 files changed +25
-1
lines changed
4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1
1
jspm_packages
2
+ * .map
3
+ bundle /* .js
Original file line number Diff line number Diff line change @@ -13,5 +13,14 @@ jspm install
13
13
## Run
14
14
15
15
```
16
- npm run
16
+ npm start
17
17
```
18
+
19
+ ## Bundle
20
+
21
+ ```
22
+ npm run bundle
23
+ ```
24
+
25
+ This creates main.js in the bundle dir, which you can then ship off to a server.
26
+
Original file line number Diff line number Diff line change
1
+ <!doctype html>
2
+ < html >
3
+ < head >
4
+ < title > Hello React!</ title >
5
+ </ head >
6
+
7
+ < body >
8
+ < div id ="main "> </ div >
9
+
10
+ < script src ="main.js "> </ script >
11
+ </ body >
12
+ </ html >
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"start" : " browser-sync start --server --files **/*" ,
8
+ "bundle" : " jspm bundle-sfx main bundle/main.js" ,
8
9
"test" : " echo \" Error: no test specified\" && exit 1"
9
10
},
10
11
"author" : " " ,
You can’t perform that action at this time.
0 commit comments