markdown-to-html-loader

1.0.1 • Public • Published

A webpack loader based on showdown to transform markdown file to html file

Installation

npm install

npm

npm install --save markdown-to-html-loader

usage

module.exports = {
  mode: 'development',
  entry: './src/index.js',

  resolveLoader: {
    modules: [
    'node_modules',
    path.resolve(__dirname, 'loaders')
    ]
  },

  module:{
    rules:[
      {
        test: /\.md$/,
        use:[
          {loader: 'html-loader'}, 
          {loader: 'conver-loader',
          options: {title: 'hello'}
        }]
      },
    ]
  },
  output: {
    filename: '[name].bundle.js',
    path: path.resolve(__dirname, 'dist'),
  },
};

Updating

Readme

Keywords

Package Sidebar

Install

npm i markdown-to-html-loader

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

1.36 kB

Total Files

3

Last publish

Collaborators

  • lainey052