Merge all markdowns and load to one js file
Node.js
npm install markdown-to-js-webpack-plugin
In your Webpack Config file
const MarkdownToJS = require("markdown-to-js-webpack-plugin").default;
//define the options
const option = {
outputPath: "md.js"
}
//In the plugin section
plugins: [
new MarkdownToJS(option)
]