8000 Angular cli readme instructions by TomDemulierChevret · Pull Request #2260 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Angular cli readme instructions #2260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix inter section link & json example
  • Loading branch information
TomDemulierChevret committed Jan 18, 2018
commit af048669d52a5e92e36f8283f4a06ccddc986fb3
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ A repo that demonstrates how to build plotly.js with Webpack can be found [here]
#### Building plotly.js with Angular CLI

Currently Angular CLI use Webpack under the hood to bundle and build your Angular application.
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).
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).
Without this plugin your build will fail when it tries to build glslify for GLSL plots.

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

```json
// in src/tsconfig.app.json
...
// List here the modules you want to import
// this exemple is for scatter plots
{
"compilerOptions": {
...
"paths": {
"plotly.js": [
// List here the modules you want to import
// this exemple is enough for scatter plots
"../node_modules/plotly.js/lib/core.js",
"../node_modules/plotly.js/lib/scatter.js"
]
}
...
}
...

}
```

## Bugs and feature requests
Expand Down
0