Skip to content

DatHuis/mjml-loader

Repository files navigation

Webpack mjml-loader

npm install --save @dathuis/mjml-loader

You can use any of the available options via the options object. By default, the filePath is set to the directory of the mjml file currently loaded to allow relative paths.

Usage

module: {
  rules: [
    {
      test: /\.mjml$/,
      use: {
        loader: '@dathuis/mjml-loader',
        options: {
          minify: true
        }
      },
    },
  ],
},

About

Webpack loader for MJML templates

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published