Skip to content

Commit

Permalink
Add index page and setting for static build
Browse files Browse the repository at this point in the history
  • Loading branch information
kuy committed May 13, 2016
1 parent e152f45 commit f4680f4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ bundle.js
*.log
inboxsdk-app-id.js
phase2/js/content.js
build
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
},
"homepage": "https://github.com/kuy/react-transport",
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server --progress --color --content-base public/"
"start": "./node_modules/.bin/webpack-dev-server --progress --color --content-base public/",
"build": "./node_modules/.bin/webpack"
},
"authors": [
"Yuki Kodama <endflow.net@gmail.com>"
Expand All @@ -32,7 +33,7 @@
"redux": "^3.5.2",
"redux-actions": "^0.9.1",
"redux-logger": "^2.6.1",
"redux-saga": "^0.10.2",
"redux-saga": "^0.10.4",
"webpack": "^1.13.0",
"webpack-dev-server": "^1.14.1"
}
Expand Down
15 changes: 15 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>redux-saga-examples</title>
</head>
<body>
<h1><a href="https://github.com/kuy/redux-saga-examples">redux-saga-examples</a> by <a href="https://twitter.com/kuy">@kuy</a></h1>
<ul>
<li><a href="autocomplete.html">Autocomplete</a></li>
<li><a href="throttle.html">Throttle</a></li>
</ul>
</body>
</html>
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
}]
},
output: {
path: __dirname + '/in-memory',
path: __dirname + '/build',
filename: '[name].bundle.js',
publicPath: '/in-memory'
},
Expand Down

0 comments on commit f4680f4

Please sign in to comment.