webpack-markdown-loader-ericasun

1.0.0 • Public • Published

Markdown Loader

A markdown loader for webpack using markdown-it.

Installation

npm install --save-dev webpack-markdown-loader-ericasun

use

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-ericasun',
				options: {
					html: true
				}
			}],
		}]
	},
	plugins: [
		new HtmlWebpackPlugin({
			filename: 'index.html',
			template: './src/views/index.html',
			title: 'haha'
		}),
	]
}

Readme

Keywords

Package Sidebar

Install

npm i webpack-markdown-loader-ericasun

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.82 kB

Total Files

3

Last publish

Collaborators

  • ericasun