diff options
author | 2020-10-12 13:35:49 +0100 | |
---|---|---|
committer | 2020-10-12 13:35:49 +0100 | |
commit | 248a11219aa4731878380bd875450f15f9731c10 (patch) | |
tree | 771dce48c977779f2af321632a75d63fa6d27f4c | |
parent | Change build system away from create-react-app (diff) |
Update app with new build system
-rw-r--r-- | public/index.html | 6 | ||||
-rw-r--r-- | src/react-app-env.d.ts | 67 |
2 files changed, 69 insertions, 4 deletions
diff --git a/public/index.html b/public/index.html index 4393349..499ba4e 100644 --- a/public/index.html +++ b/public/index.html @@ -2,15 +2,15 @@ <html lang="en"> <head> <meta charset="utf-8" /> - <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> + <link rel="icon" href="favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="theme-color" content="#7289DA" /> <meta name="description" content="Python Discord Forms is the surveying system for the Python Discord server." /> - <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> - <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> + <link rel="apple-touch-icon" href="/logo192.png" /> + <link rel="manifest" href="/manifest.json" /> <title>Python Discord Forms</title> </head> <body> diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts index 6431bc5..981cd73 100644 --- a/src/react-app-env.d.ts +++ b/src/react-app-env.d.ts @@ -1 +1,66 @@ -/// <reference types="react-scripts" /> +/// <reference types="node" /> +/// <reference types="react" /> +/// <reference types="react-dom" /> + +declare namespace NodeJS { + interface ProcessEnv { + readonly NODE_ENV: 'development' | 'production' | 'test'; + readonly PUBLIC_URL: string; + } +} + +declare module '*.bmp' { + const src: string; + export default src; +} + +declare module '*.gif' { + const src: string; + export default src; +} + +declare module '*.jpg' { + const src: string; + export default src; +} + +declare module '*.jpeg' { + const src: string; + export default src; +} + +declare module '*.png' { + const src: string; + export default src; +} + +declare module '*.webp' { + const src: string; + export default src; +} + +declare module '*.svg' { + import * as React from 'react'; + + export const ReactComponent: React.FunctionComponent<React.SVGProps< + SVGSVGElement + > & { title?: string }>; + + const src: string; + export default src; +} + +declare module '*.module.css' { + const classes: { readonly [key: string]: string }; + export default classes; +} + +declare module '*.module.scss' { + const classes: { readonly [key: string]: string }; + export default classes; +} + +declare module '*.module.sass' { + const classes: { readonly [key: string]: string }; + export default classes; +} |