All Projects → tdeNL → tde-webpack-mjml-plugin

tdeNL / tde-webpack-mjml-plugin

Licence: MIT license
Webpack plugin for converting MJML files to HTML

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tde-webpack-mjml-plugin

Svg Sprite Loader
Webpack loader for creating SVG sprites.
Stars: ✭ 1,822 (+15083.33%)
Mutual labels:  webpack-plugin, webpack2, webpack3
Webpack Cdn Plugin
A webpack plugin that use externals of CDN urls for production and local node_modules for development
Stars: ✭ 306 (+2450%)
Mutual labels:  webpack-plugin, webpack2, webpack3
Browser Sync Webpack Plugin
Easily use BrowserSync in your Webpack project.
Stars: ✭ 356 (+2866.67%)
Mutual labels:  webpack-plugin, webpack2
Webpack Core Usage
webpack2完整系列课程,欢迎阅读。同时欢迎移步我的react全家桶文章全集: https://github.com/liangklfangl/react-article-bucket
Stars: ✭ 94 (+683.33%)
Mutual labels:  webpack-plugin, webpack2
Everything Is A Plugin
Everything is a Plugin: Mastering webpack from the inside out. NgConf 2017
Stars: ✭ 123 (+925%)
Mutual labels:  webpack-plugin, webpack2
Webpack Book
From apprentice to master (CC BY-NC-ND)
Stars: ✭ 2,372 (+19666.67%)
Mutual labels:  webpack2, webpack3
ignore-emit-webpack-plugin
Prevents ignored files from being emitted during a Webpack build
Stars: ✭ 17 (+41.67%)
Mutual labels:  webpack-plugin, webpack2
Webpack Alioss Plugin
阿里 oss-webpack 自动上传插件
Stars: ✭ 35 (+191.67%)
Mutual labels:  webpack-plugin, webpack2
Html Res Webpack Plugin
plugin for generating html in webpack
Stars: ✭ 170 (+1316.67%)
Mutual labels:  webpack-plugin, webpack2
eruda-webpack-plugin
A webpack plugin of eruda to help you develop mobile app
Stars: ✭ 56 (+366.67%)
Mutual labels:  webpack-plugin, webpack3
webpack-boilerplate
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)
Stars: ✭ 33 (+175%)
Mutual labels:  webpack2, webpack3
Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (+1100%)
Mutual labels:  webpack2, webpack3
Serverless Webpack
Serverless plugin to bundle your lambdas with Webpack
Stars: ✭ 1,595 (+13191.67%)
Mutual labels:  webpack2, webpack3
prettier-eslint-webpack-plugin
Webpack plugin for prettier-eslint which ESLint's settings is set to JavaScript Standard Style
Stars: ✭ 24 (+100%)
Mutual labels:  webpack-plugin, webpack2
Es6 Webpack2 Starter
🚀 A template project for es6/7, webpack2/3, sass and postcss
Stars: ✭ 106 (+783.33%)
Mutual labels:  webpack2, webpack3
Vue2 Vue Router2 Webpack2
《从零搭建 vue2 vue-router2 webpack4 工程》《从零搭建 vue2 vue-router2 webpack3 工程》《搭建 vue2 vue-router2 webpack3 多入口工程》
Stars: ✭ 90 (+650%)
Mutual labels:  webpack2, webpack3
Awesome Webpack Cn
[印记中文](https://docschina.org/) - webpack 优秀中文文章
Stars: ✭ 3,611 (+29991.67%)
Mutual labels:  webpack2, webpack3
Easy Vue
Learn vueJS Easily 👻
Stars: ✭ 896 (+7366.67%)
Mutual labels:  webpack2, webpack3
Multipage Webpack Plugin
A plugin that makes handling templates and asset distribution for multi-page applications using webpack trivial
Stars: ✭ 168 (+1300%)
Mutual labels:  webpack-plugin, webpack2
bower-resolve-webpack-plugin
Offers an enhanced bower support for enhanced-resolve plugin.
Stars: ✭ 12 (+0%)
Mutual labels:  webpack-plugin, webpack2

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].