diff --git a/custom.d.ts b/custom.d.ts index 04a1036..6ce532e 100644 --- a/custom.d.ts +++ b/custom.d.ts @@ -45,3 +45,13 @@ declare module '*.pdf' { const content: url; export default content; } + +declare module '*.txt' { + const content: string; + export default content; +} + +declare module '*.html' { + const content: string; + export default content; +} diff --git a/package.json b/package.json index 0645625..0aaa0f9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "webpack-dev-server --mode development", "lint": "npx eslint --fix \"src/**/*.ts\" && npx prettier --write \"src/**/*.ts\"", - "build": "webpack && find dist -type f -regex \".*\\(js\\|css\\|txt\\)\" | xargs rm" + "build": "webpack && find dist -type f -regex \".*\\(js\\|css\\|LICENSE.*\\)\" | xargs rm" }, "repository": { "type": "git", diff --git a/src/index.ts b/src/index.ts index 3712423..f16d793 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,7 @@ import './static/no-change/favicon.ico'; import './static/no-change/og-image.jpg'; +import './static/no-change/robots.txt'; +import './static/no-change/404.html'; import './styles.scss'; import { create } from './portfolio'; diff --git a/src/static/no-change/404.html b/src/static/no-change/404.html new file mode 100644 index 0000000..9177031 --- /dev/null +++ b/src/static/no-change/404.html @@ -0,0 +1,36 @@ + + +
+ + +