webpack-markdown-loaders
v1.0.0
Published
A markdown loader for weboack using markdown-it
Downloads
4
Readme
#Markdown Loader A markdown loader for weboack using markdown-it
Installation
npm install webpack-markdown-loaders
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: 'webpack-markdown-loader',
options: {
html:true
}
}],
}
]
},
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
template: './src/views/index.html',
})
]
}