Skip to content

Commit

Permalink
update static paths
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-sg committed Jun 18, 2024
1 parent 44a2a0c commit 13afdb1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sw/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SWReplay } from "@webrecorder/wabac/src/swmain";
// @ts-expect-error - TS2307 - Cannot find module '@webrecorder/awp-sw' or its corresponding type declarations.
import { ExtAPI, RecordingCollections } from "@webrecorder/awp-sw";

import REC_INDEX_HTML from "../static/index.html";
import REC_INDEX_HTML from "@/static/index.html";
import RWP_INDEX_HTML from "replaywebpage/index.html";

// @ts-expect-error - TS7016 - Could not find a declaration file for module '@webrecorder/wabac/src/loaders'. '/Users/emma/Work/Webrecorder/archiveweb.page/node_modules/@webrecorder/wabac/src/loaders.js' implicitly has an 'any' type.
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
],
"skipLibCheck": true,
"paths": { "@/static/*": ["./static/*"] }
"paths": { "@/*": ["./*"] }
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.js"]
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const extensionWebConfig = (env, argv) => {
];

const copy = [
{ from: "src/static/", to: "./" },
{ from: "static", to: "./" },
{ from: "ruffle", to: "./ruffle/" },
];

Expand Down

0 comments on commit 13afdb1

Please sign in to comment.