GithubHelp home page GithubHelp logo

mermaid-webpack-demo's Introduction

mermaid-webpack-demo

A simple demo for using mermaid with webpack.

Setup

yarn install

Build

yarn build:watch

Test

open index.html

mermaid-webpack-demo's People

Contributors

tylerlong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mermaid-webpack-demo's Issues

Mermaid js click event

hi guys please i need help i have a Mermaid graph whith nodes, i want to have a js function that load data from json file and didplay it on window dialog when i click on the coresponding node. each node has its proper inforomation in json file. please i need help

Does not work with webpack in "Production" mode, with uglify.

Hi, I am having problems with Mermaid and Webpack in my project, so I decided to use this repo as a test.

I cloned the repo and ran the npm build script, which worked without any trouble.
I then modified the build script in the package.config file to more closely match the one I am using in my project. I used "build": "webpack --progress --colors -p"

I then tried to run the build script again, and it did not work.
The error I am getting is

ERROR in index.bundle.js from UglifyJs
Unexpected token: name (v) [index.bundle.js:22759,6]

classDiagram 支持的问题

似乎是不支持 classDiagram。
下面这段 html 代码无法正常显示类图:

<html>
<body>
<div  class="mermaid">
classDiagram
class CXX{
+string ip
+ port
}
</div>
<script =src="index.bundle.js charset="utf-8""></script>
</body>
</html>

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.