jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.64k stars 722 forks source link

how to convert src/drawflow.js to drawflow.min.js #225

Closed gunasekharravilla closed 3 years ago

gunasekharravilla commented 3 years ago

please explain how to convert drawflow.js to drawflow.min.js

jerosoler commented 3 years ago

Hi @gunasekharravilla

With webpack. Read more https://webpack.js.org/guides/production/

Run the packaje.json command npm run build https://github.com/jerosoler/Drawflow/blob/master/package.json

This command execute this script: https://github.com/jerosoler/Drawflow/blob/master/webpack.config.js

I am not an expert on webpack, but there are many tutorials on the internet.

Jero

gunasekharravilla commented 3 years ago

thanks @jerosoler

if possible implement connection labeling and export to json in connections as below

"connection": [
                  {
                    "node": "2",
                     "output": "input_1"
                     "label": "yes or no"

                    }
                  ]
jerosoler commented 3 years ago

Not implemented. View for solutions: https://github.com/jerosoler/Drawflow/issues/18