Skip to content

Commit

Permalink
add for 06
Browse files Browse the repository at this point in the history
  • Loading branch information
kyorohiro committed Dec 6, 2017
1 parent c88e509 commit 01892ba
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions package/hello-dev-server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "hello-dev-server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack-dev-server"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"webpack": "^3.10.0",
"webpack-dev-server": "^2.9.6"
}
}
9 changes: 9 additions & 0 deletions package/hello-dev-server/src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html>
<head>
<title>hello</title>
</head>
<body>
Hello, World!!
</body>
</html>

3 changes: 3 additions & 0 deletions package/hello-dev-server/src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//dummy


10 changes: 10 additions & 0 deletions package/hello-dev-server/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const path = require('path');

module.exports = {
entry: './src/main.js',
devServer: {
contentBase: path.resolve(__dirname, 'src'),
port: 8085,
}
};

0 comments on commit 01892ba

Please sign in to comment.