I know one can read .json
files from disk at compile time and use them in component like:
import * as configFromFile from './my-file.json';
...
let config = configFromFile;
Is there a way to load file in similar manner that is not .json
, for example '.txt' or '.csv' file and initialise string
variable with it's content?