Fix webpack-dev-server setup

This commit is contained in:
Arik Fraimovich
2018-02-07 17:18:38 +02:00
parent 568b3e392b
commit a6cf7643c9
3 changed files with 6 additions and 3 deletions

View File

@@ -24,4 +24,4 @@ def render_index():
@routes.route(org_scoped_rule('/<path:path>'))
@routes.route(org_scoped_rule('/'))
def index(**kwargs):
return render_index()
return render_index()

View File

@@ -25,4 +25,4 @@ def configure_webpack(app):
def webpack_assets():
return {
'asset_url': get_asset,
}
}

View File

@@ -143,8 +143,11 @@ const config = {
},
devServer: {
inline: true,
historyApiFallback: true,
historyApiFallback: {rewrites: [
{ from: /./, to: '/static/index.html' }
]},
contentBase: path.join(__dirname, 'client', 'app'),
publicPath: '/static/',
proxy: [{
context: [
'/login', '/invite', '/setup', '/images', '/js', '/styles',