This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 修改支持 css modules 合 react-dev-utils 升级
- Loading branch information
virgoone
committed
Jan 5, 2022
1 parent
0a332ff
commit 798097f
Showing
11 changed files
with
508 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
dist/ | ||
public/ | ||
lib/ | ||
scripts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="react" /> | ||
/// <reference types="react-dom" /> | ||
|
||
declare namespace NodeJS { | ||
interface ProcessEnv { | ||
readonly __DEV__: 'development' | 'production' | 'test' | ||
} | ||
} | ||
|
||
declare const __DEV__: boolean | ||
declare const SENTRY_DSN: string | ||
declare const APP_ENV: string | ||
declare const SENTRY_RELEASE: string | ||
|
||
declare module '*.avif' { | ||
const src: string | ||
export default src | ||
} | ||
|
||
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 '*.css' { | ||
const classes: { readonly [key: string]: string } | ||
export default classes | ||
} | ||
|
||
declare module '*.scss' { | ||
const classes: { readonly [key: string]: string } | ||
export default classes | ||
} | ||
|
||
declare module '*.less' { | ||
const classes: { readonly [key: string]: string } | ||
export default classes | ||
} | ||
|
||
declare module '*.sass' { | ||
const classes: { readonly [key: string]: string } | ||
export default classes | ||
} | ||
|
||
declare module '*.css?modules' { | ||
const classes: { readonly [key: string]: string } | ||
export default classes | ||
} | ||
|
||
declare module '*.scss?modules' { | ||
const classes: { readonly [key: string]: string } | ||
export default classes | ||
} | ||
|
||
declare module '*.less?modules' { | ||
const classes: { readonly [key: string]: string } | ||
export default classes | ||
} | ||
|
||
declare module '*.sass?modules' { | ||
const classes: { readonly [key: string]: string } | ||
export default classes | ||
} |
Oops, something went wrong.