webpack-markdown-loader-zhx
v1.0.0
Published
A markdown loader for webpack using makdown-it
Downloads
4
Readme
Markdown Loader
A markdown loader for webpack using makdown-it
Installation
npm install --save-dev webpack-mardown-loader
Usage
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry:{
index: './src/js/index.js'
},
modules: {
rules:[
{
test:/\.md$/,
use:[
{
loader:'html-loader'
},
{
loader:'webpack-mardown-loader',
option:{
html:true
}
}
],
}
]
},
plugins:[
new HtmlWebpackPlugin(
{
filename:'index.html',
template:'./src/views/index.html'
}
)
]
}