markdown-loader-webpack

1.0.2 • Public • Published

Markdown Loader

It's a markdown loader for webpack using markdown-it

Installation

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

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: 'markdown-loader-webpack',
					options: {
                        html: true
                    }
				}],
			},
		]
	},

	plugins: [
		new HtmlWebpackPlugin({
			filename: 'index.html',
			template: 'src/views/index.html',
			title: 'example'
		}),
	]
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    1

Package Sidebar

Install

npm i markdown-loader-webpack

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

1.69 kB

Total Files

3

Last publish

Collaborators

  • zaragoto