The biggest problem I have encountered so far is to import static file using typescript, I have to make .d.ts file for sounds and images, I konw there are answers for this both on typescript github repo
and stackoverflow
, but none of these works for me, so I ave to do the dirty way: make .d.ts file for *.png
s & *.wav
s, and then within the .d.ts
file, declare a toString()
method
.
The typings-for-css-modules-loader
has been a great help to automatically generate .d.ts
files for scss
, but it would still fail under first compilation.
All the trouble may because I have the wrong configuration, I will reconsider the problem later.