Skip to content

Commit

Permalink
can't import all files in a folder in typescript, used require instea…
Browse files Browse the repository at this point in the history
…d & installed @types/node
  • Loading branch information
EddyVinck committed Dec 3, 2018
1 parent 31aa510 commit aedcd7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/utils/getIconUrl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import imageUrls from "../../img/*.*";
const imageUrls = require("../../img/*.*");

// A more convenient way to fetch the url of an icon
const getIconUrl = (iconName: string = "") => {
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@types/node": "^10.12.11",
"css": "^2.2.4",
"interactjs": "^1.3.4",
"redom": "^3.16.1",
Expand Down

1 comment on commit aedcd7c

@EddyVinck
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.