mingwiki-webpack-markdown-loader

1.0.0 • Public • Published

webpack-markdown-loader

const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
	entry: {
		index: './src/index.js'
	},
	output: {
		path: path.resolve(__dirname, './dist')
	},
	resolveLoader: {
		modules: ['node_modules', './']
	},
	module: {
		rules: [
			{
				test: /\.md$/,
				use: [
					{
						loader: 'html-loader',
						options: {
							esModule: false,
						}
					},
					{
						loader: 'markdown-loader',
					}
				]
			}
		],
	},
	plugins: [
		new HtmlWebpackPlugin({
			title: 'test loader',
			template: './src/index.html',
			markdown: './src/article.md',
		}),
	]
}

/mingwiki-webpack-markdown-loader/

    Package Sidebar

    Install

    npm i mingwiki-webpack-markdown-loader

    Weekly Downloads

    0

    Version

    1.0.0

    License

    none

    Unpacked Size

    12.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • mingwiki