diff --git a/custom.d.ts b/custom.d.ts index 4344da7..7d51401 100644 --- a/custom.d.ts +++ b/custom.d.ts @@ -14,3 +14,13 @@ declare module '*.jpeg' { const content: ResponsiveImage; 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 75e960e..148d8a5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "start": "webpack-dev-server --mode development", - "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 3af813f..84685e6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,6 @@ import './index.scss'; +import './no-change/404.html'; +import './no-change/robots.txt'; import { Photos } from './photos'; // @ts-ignore diff --git a/src/no-change/404.html b/src/no-change/404.html new file mode 100644 index 0000000..9177031 --- /dev/null +++ b/src/no-change/404.html @@ -0,0 +1,36 @@ + + +
+ + +