Webpack plugin for converting MJML files to HTML
npm install --save-dev tde-webpack-mjml-plugin
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'
}),
]
};
// webpack.config.js
module.exports = {
plugins: [
new MjmlPlugin(inputPath, {
extension: options.extension,
outputPath: options.outputPath
}),
]
}
Type: String
The path where MJML files are located
Type: String
Default: ".html"
The default output extension
Type: String
Default: ""
The path where HTML files should be written to
MIT © TDE