bures / mjml4-in-browser Goto Github PK
View Code? Open in Web Editor NEWMJML 4 packaged for being used in browser (packaged by webpack)
MJML 4 packaged for being used in browser (packaged by webpack)
I can't seem to get this to work
$ npm run build
> [email protected] build C:\Users\Jace\git\mjml4-in-browser
> webpack
Hash: 93ec878bfa46b2e833ec
Version: webpack 2.7.0
Time: 70ms
Asset Size Chunks Chunk Names
mjml.js 3.14 kB 0 [emitted] mjml
[0] multi ./mjml/packages/mjml/src/index 28 bytes {0} [built]
ERROR in multi ./mjml/packages/mjml/src/index
Module not found: Error: Can't resolve './mjml/packages/mjml/src/index' in 'C:\Users\Jace\git\mjml4-in-browser'
@ multi ./mjml/packages/mjml/src/index
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Jace\AppData\Roaming\npm-cache\_logs\2019-01-14T02_14_54_175Z-debug.log
I'm not sure what this repo is doing.
I do the following:
import { mjml2html } from 'mjml4-in-browser'; mjml2html(..)
But suddenly i get the error that the function is not defined. Is something changed?
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.