Skip to content

Commit

Permalink
Feat/support spa routing (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehyland committed Jun 6, 2022
1 parent 713cb54 commit c5094fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"fixed": [["*"]],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/lucky-jobs-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'bgdk': minor
---

Support SPA client side routing
4 changes: 2 additions & 2 deletions packages/bgdk/src/config/createWebpackDevServerConfig.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { Configuration } from 'webpack-dev-server';
// import * as paths from './paths';

export function createWebpackDevServerConfig(): Configuration {
return {
open: false,
host: 'localhost',
host: '0.0.0.0',
port: 3000,
hot: true,
historyApiFallback: true,
devMiddleware: {
stats: {
preset: 'errors-warnings',
Expand Down

0 comments on commit c5094fe

Please sign in to comment.