-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for loading images via webpack config (#276)
* Fixed issue where duplicate versions of the import map overrides were used Upgraded dependencies * Added image loading via asset/resource * Changeset for the inclusion of images in the webpack config * Added check for React before adding svg types * Removed React component declaration Co-authored-by: Pieter Boeren <p.boeren@vicrea.nl>
- Loading branch information
1 parent
01bf3ae
commit 337d8dd
Showing
6 changed files
with
88 additions
and
1,158 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,6 @@ | ||
--- | ||
"generator-single-spa": patch | ||
"webpack-config-single-spa": patch | ||
--- | ||
|
||
Added support for images in the webpack config |
4 changes: 0 additions & 4 deletions
4
packages/generator-single-spa/src/common-templates/typescript/declarations.d.ts
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
packages/generator-single-spa/src/common-templates/typescript/declarations.d.ts.ejs
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,39 @@ | ||
declare module "*.html" { | ||
const rawHtmlFile: string; | ||
export = rawHtmlFile; | ||
} | ||
|
||
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" { | ||
const src: string; | ||
export default src; | ||
} |
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
Oops, something went wrong.