1.0.0 • Published 2 years ago
ezmarkdown-loader v1.0.0
Markdown Loader
A markdown loader for webpack using markdown-it.
Installation
npm install --save-dev ezmarkdown-loader
Usage
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
index: './src/js/index.js',
},
module: {
rules: [
{
test: /\.md$/,
use: [
{
loader: 'html-loader',
},
{
loader: 'ezmarkdown-loader',
options: {
html: true,
},
},
],
},
],
},
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
template: './src/views/index.html',
}),
],
};
1.0.0
2 years ago