The render-md-loader
interprets @import
and url()
like import/require()
and will resolve them.
To begin, you'll need to install render-md-loader
:
npm install --save-dev render-md-loader
Then add the plugin to your webpack
config. For example:
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.md$/i,
use: ['render-md-loader'],
},
],
},
};