GithubHelp home page GithubHelp logo

matteobertoldo / webpack-mjml-plugin Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 5.0 2.84 MB

๐Ÿ“ฎ Webpack MJML plugin for compiling MJML files.

Home Page: https://www.npmjs.com/package/webpack-mjml-plugin

License: MIT License

Shell 6.25% JavaScript 93.75%
mjml mjml-framework mjml-to-html webpack webpack-plugin

webpack-mjml-plugin's Introduction

Senior Front-end Developer Stats

๐ŸŒˆ Web UI/UX maker.

โœ๏ธ Author of Atomforce & Language SFCC

โšฝ๏ธ Footbal lover, Internazionale Milano Fan.

webpack-mjml-plugin's People

Contributors

dependabot[bot] avatar matteobertoldo avatar michsior14 avatar semantic-release-bot avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

webpack-mjml-plugin's Issues

Improve `inputPath`

Context

Some part of the inputPath is currently hard coded and can't be changed with arguments/options: ${that.inputPath}/**/*.mjml

I'm using MJML in a Twig context and usually use this kind of file extension: .mjml.twig. Unfortunately, I can't compile them because the plugin forces the .mjml extension.

I also prefix my template parts with an underscore: _header.mjml (sass way) but since the plugin doesn't provide control on the glob either, I can't exclude them with a custom glob like: [^_]*.mjml. Neither can I place them in separate folder, or it must be outsides of my /templates/emails scope.

Describe the solution you'd like

More freedom over the glob pattern used to collect files that should be compiled. Ideally removing the /**/*.mjml part.

Describe alternatives you've considered

Rename everything to .mjml, avoid underscores, sure this does work but since it's a webpack that being used by developers, I think people are enough skilled to provide their own glob.

feat: emit assets with cache mode

Describe the solution you'd like

As in other build plugins, enable the possibility to cache files that are output without different modifications. Ex:

cached@2x

Suggestions:

Make the boolean value dynamic after each compilation of the single file:

Describe alternatives you've considered

None.

Additional context

None.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.