Parcel plugin for importing any file types as string.
Using yarn:
yarn add parcel-plugin-stringify-anything parcel-bundler --dev
Or via npm:
npm install parcel-plugin-stringify-anything parcel-bundler --save-dev
Then, specify the file types to import as string. (e.g., the Markdown file):
{
...
+ "assetTypesToStringify": ["md"],
"devDependencies": {
"parcel-bundler": "^1.10.3",
"parcel-plugin-stringify-anything": "^1.0.0"
}
...
}