Include txt into tsc build
I have a ascii.txt file which I read with fs since formatting it correctly in a ts file is a nightmare
How do I include it in the build
6 Replies
Fixed it, used copyfiles package
Nevermind I did not
Fucking hosting the txt file somewhere lol fetch for the win
ok that doesnt work either fml
do you mean tsx? tsc would only convert ts to js
No
I stored ascii text
any reason you can't do this?:
Special characters
And there was a lot
I tried escaping but it was a nightmare
So for now I host the txt on a gist and just fetch it lol
If GitHub is down then create-drippy-api is down
fair enough, I'd probably do the same in your situation