Skip to content

Commit 924f3ee

Browse files
author
Jonathon Kelly
committed
set content base in config
1 parent 8c92a0e commit 924f3ee

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dist"
88
],
99
"scripts": {
10-
"start": "webpack-dev-server --content-base pages",
10+
"start": "webpack-dev-server",
1111
"clean-build": "rimraf dist",
1212
"build": "npm run clean-build && babel src --out-dir dist",
1313
"build-pages": "npm run clean-build && NODE_ENV=production webpack --config ./webpack.production.config.js --progress --profile --colors",

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ module.exports = {
99
path: path.resolve(__dirname, 'pages'),
1010
filename: 'bundle.js',
1111
},
12+
devServer: {
13+
contentBase: 'pages',
14+
},
1215
module: {
1316
loaders: [
1417
{

0 commit comments

Comments
 (0)