๐ Web UI/UX maker.
โ๏ธ Author of Atomforce & Language SFCC
โฝ๏ธ Footbal lover, Internazionale Milano Fan.
๐ฎ Webpack MJML plugin for compiling MJML files.
Home Page: https://www.npmjs.com/package/webpack-mjml-plugin
License: MIT License
๐ Web UI/UX maker.
โ๏ธ Author of Atomforce & Language SFCC
โฝ๏ธ Footbal lover, Internazionale Milano Fan.
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.
Describe the solution you'd like
As in other build plugins, enable the possibility to cache
files that are output without different modifications. Ex:
Suggestions:
Make the boolean value dynamic after each compilation of the single file:
Describe alternatives you've considered
None.
Additional context
None.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.