Skip to content

Commit

Permalink
Ещё оддна попытка исправления для GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyAkkuratov committed May 30, 2024
1 parent 0186039 commit 32d0830
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/weatherApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default async function weatherApp(rootElement) {
if (event.target instanceof HTMLAnchorElement) {
event.preventDefault();
// eslint-disable-next-line no-undef
router.navigate(PREFIX + event.target.pathname);
router.navigate(event.target.pathname);
}
});

Expand Down
10 changes: 7 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require("path");
const { DefinePlugin } = require("webpack");
// const { DefinePlugin } = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");

const isProduction =
Expand All @@ -25,9 +25,13 @@ module.exports = {
template: "src/index.html",
filename: "index.html",
}),
new DefinePlugin({
PREFIX: JSON.stringify(PREFIX),
new HtmlWebpackPlugin({
template: "src/index.html",
filename: "404.html",
}),
// new DefinePlugin({
// PREFIX: JSON.stringify(PREFIX),
// }),
],
module: {
rules: [
Expand Down

0 comments on commit 32d0830

Please sign in to comment.