Skip to content

Commit 53614a9

Browse files
author
Brad Stayte
committed
added http server
1 parent 5029405 commit 53614a9

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "js30",
3+
"version": "1.0.0",
4+
"description": "![](https://javascript30.com/images/JS3-social-share.png)",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "http-server ./ -o -c-1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git@github.com:stickmanblue/JavaScript30.git"
12+
},
13+
"keywords": [],
14+
"author": "",
15+
"license": "ISC",
16+
"bugs": {
17+
"url": "https://github.com/stickmanblue/JavaScript30/issues"
18+
},
19+
"homepage": "https://github.com/wesbos/JavaScript30#readme",
20+
"devDependencies": {
21+
"http-server": "^0.9.0"
22+
}
23+
}

webpack.config.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module.exports = {
2+
entry: './index.js',
3+
output: {
4+
path: './build',
5+
filename: 'bundle.js',
6+
publicPath: ''
7+
},
8+
module: {
9+
loaders: [
10+
{
11+
test: /\.jsx?/,
12+
loaders: [
13+
'babel'
14+
],
15+
include: './index.js',
16+
query: {
17+
presets: [
18+
'es2015'
19+
]
20+
}
21+
},
22+
{
23+
test: /\.scss$/,
24+
loaders: [
25+
'style',
26+
'css',
27+
'sass'
28+
]
29+
},
30+
{
31+
test: /\.(png|jpg)$/,
32+
loaders: [
33+
'url'
34+
],
35+
query: {
36+
limit: 8192
37+
}
38+
}
39+
]
40+
}
41+
}

0 commit comments

Comments
 (0)