You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,28 @@ yarn install
135
135
yarn start
136
136
```
137
137
138
+
## Building the library
139
+
140
+
To build the production-ready library:
141
+
142
+
```bash
143
+
yarn build
144
+
```
145
+
146
+
**Output**: Single optimized bundle with all dependencies included.
147
+
148
+
-`netjsongraph.[hash].min.js` - Complete library with ECharts and Leaflet
149
+
-`netjsongraph.[hash].min.js.map` - Source map for debugging
150
+
- Compressed versions (`.gz` and `.br`) for optimized delivery
151
+
152
+
The build includes:
153
+
154
+
-**ECharts** for network graph rendering
155
+
-**Leaflet** for geographic map rendering
156
+
-**Core NetJSONGraph.js** functionality
157
+
158
+
This unified bundle approach ensures compatibility and simplifies deployment while maintaining optimal performance through advanced webpack optimizations.
159
+
138
160
### Run Tests
139
161
140
162
The test suite includes browser tests, so **ensure that ChromeDriver is installed** before running them.
0 commit comments