Skip to content

Commit a6a27f2

Browse files
VanaryEugeneHlushko
authored andcommitted
docs(guides): Add "npm build" instruction on "Loading Data" section (#2766)
1 parent 0d1c301 commit a6a27f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/guides/asset-management.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ __src/index.js__
483483
document.body.appendChild(component());
484484
```
485485

486-
When you open `index.html` and look at your console in your developer tools, you should be able to see your imported data being logged to the console!
486+
Re-run the `npm run build` command and open `index.html`. If you look at the console in your developer tools, you should be able to see your imported data being logged to the console!
487487

488488
T> This can be especially helpful when implementing some sort of data visualization using a tool like [d3](https://github.com/d3). Instead of making an ajax request and parsing the data at runtime you can load it into your module during the build process so that the parsed data is ready to go as soon as the module hits the browser.
489489

0 commit comments

Comments
 (0)