Skip to content

Commit

Permalink
fix/github-pages: fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
8coon committed Oct 16, 2024
1 parent b7cdaec commit 1bc67d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/static/meta/favicon.ico" />
<link rel="icon" href="/vkui-tokens/static/meta/favicon.ico" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Webpack React description" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no, viewport-fit=cover"
/>
<link rel="apple-touch-icon" href="/static/meta/apple-touch-icon.png" />
<link rel="apple-touch-icon" href="/vkui-tokens/static/meta/apple-touch-icon.png" />
<title>VKUI Tokens documentation</title>
</head>
<body>
Expand Down
8 changes: 8 additions & 0 deletions docs/webpack/webpack.client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default function (env, argv) {
}),
new HtmlWebpackPlugin({
template: './public/index.html',
publicPath: '/vkui-tokens/'
}),
new WebpackNotifierPlugin({ alwaysNotify: false }),
new CopyWebpackPlugin({
Expand All @@ -82,6 +83,13 @@ export default function (env, argv) {
hot: true,
open: true,
historyApiFallback: true,
proxy: [
{
context: ["/vkui-tokens/assets"],
target: "http://localhost:3000",
pathRewrite: { "^/vkui-tokens/(.*)": "/$1" },
},
]
},
};
};

0 comments on commit 1bc67d1

Please sign in to comment.