Skip to content

Commit 794a175

Browse files
TomDemulierChevretetpinard
authored andcommitted
Fix inter section link & json example
1 parent b0e9209 commit 794a175

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ A repo that demonstrates how to build plotly.js with Webpack can be found [here]
125125
#### Building plotly.js with Angular CLI
126126

127127
Currently Angular CLI use Webpack under the hood to bundle and build your Angular application.
128-
Sadly it doesn't allow to override its Webpack config, and therefore to use the plugin mentioned in [Building plotly.js with Webpack](#building-plotly.js-with-webpack).
128+
Sadly it doesn't allow to override its Webpack config, and therefore to use the plugin mentioned in [Building plotly.js with Webpack](#building-plotlyjs-with-webpack).
129129
Without this plugin your build will fail when it tries to build glslify for GLSL plots.
130130

131131
Currently 2 solutions exists to circumvent this issue :
@@ -140,21 +140,18 @@ import * as Plotly from 'plotly.js';
140140

141141
```json
142142
// in src/tsconfig.app.json
143-
...
143+
// List here the modules you want to import
144+
// this exemple is for scatter plots
145+
{
144146
"compilerOptions": {
145-
...
146147
"paths": {
147148
"plotly.js": [
148-
// List here the modules you want to import
149-
// this exemple is enough for scatter plots
150149
"../node_modules/plotly.js/lib/core.js",
151150
"../node_modules/plotly.js/lib/scatter.js"
152151
]
153152
}
154-
...
155153
}
156-
...
157-
154+
}
158155
```
159156

160157
## Bugs and feature requests

0 commit comments

Comments
 (0)