We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6471790 commit c919e3dCopy full SHA for c919e3d
2 files changed
core/lib/patternlab.js
@@ -544,7 +544,10 @@ var patternlab_engine = function (config) {
544
545
// Saves the pattern graph when all files have been compiled
546
PatternGraph.storeToFile(patternlab);
547
- PatternGraph.exportToDot(patternlab, "dependencyGraph.dot");
+ if (patternlab.config.exportToGraphViz) {
548
+ PatternGraph.exportToDot(patternlab, "dependencyGraph.dot");
549
+ plutils.log.info(`Exported pattern graph to ${path.join(config.paths.public.root, "dependencyGraph.dot")}`);
550
+ }
551
552
//export patterns if necessary
553
pattern_exporter.export_patterns(patternlab);
patternlab-config.json
@@ -61,5 +61,5 @@
61
"markupOnly": ".markup-only"
62
},
63
"cleanOutputHtml": true,
64
- "export_graphviz": false
+ "exportToGraphViz": false
65
}
0 commit comments