2.0.2 • Published 2 years ago

tde-webpack-mjml-plugin v2.0.2

Weekly downloads
484
License
MIT
Repository
github
Last release
2 years ago

TDE Webpack MJML Plugin

Webpack plugin for converting MJML files to HTML

Install

npm install --save-dev tde-webpack-mjml-plugin

Usage

In your webpack.config.js

var MjmlPlugin = require('tde-webpack-mjml-plugin');

module.exports = {
    // ...
    plugins: [
        new MjmlPlugin(paths.MJML, {
            extension: '.twig',
            outputPath: 'path/to/mjml'
        }),
    ]
};

API:

// webpack.config.js

module.exports = {
    plugins: [
        new MjmlPlugin(inputPath, {
            extension: options.extension,
            outputPath: options.outputPath
        }),
    ]
}

inputPath

Type: String

The path where MJML files are located

options.extension

Type: String Default: ".html"

The default output extension

options.outputPath

Type: String Default: ""

The path where HTML files should be written to

License

MIT © TDE

2.0.2

2 years ago

2.0.0

3 years ago

1.4.0

5 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago