move history fallback to webpack server config

This commit is contained in:
stephen grider 2016-01-16 16:32:59 -08:00
parent 2cd850bae8
commit 81cee1411b
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"main": "index.js",
"repository": "git@github.com:StephenGrider/ReduxSimpleStarter.git",
"scripts": {
"start": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --history-api-fallback"
"start": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js"
},
"author": "",
"license": "ISC",

View File

@ -17,6 +17,7 @@ module.exports = {
extensions: ['', '.js', '.jsx']
},
devServer: {
historyApiFallback: true,
contentBase: './'
}
};