Skip to content

Commit 935a7eb

Browse files
Update npm start script to run webpack before the server
Also, update `.gitignore` to ignore the bundle output
1 parent 869998a commit 935a7eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
*.swp
33
*.log
4+
public/bundle.js

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A tutorial of building a universal web app with React.",
55
"author": "Mark <[email protected]>",
66
"scripts": {
7-
"start": "node server.js"
7+
"start": "webpack && node server.js"
88
},
99
"main": "server.js",
1010
"keywords": [

0 commit comments

Comments
 (0)