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: articles/azure-maps/how-to-use-npm-package.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ npm install azure-maps-control
32
32
33
33
This package includes a minified version of the source code, CSS Style Sheet, and the TypeScript definitions for the Azure Maps map control.
34
34
35
-
You would also need to embed the CSS Style Sheet for various controls to display correctly. If you're using a JavaScript bundler to bundle the dependencies and package your code, refer to your bundler's documentation on how it's done. For [Webpack], it's commonly done via a combination of `style-loader` and `css-loader` with documentation available at [style-loader].
35
+
You would also need to embed the CSS Style Sheet for various controls to display correctly. If you're using a JavaScript bundler to bundle the dependencies and package your code, refer to your bundler's documentation on how it's done. For [webpack], it's commonly done via a combination of `style-loader` and `css-loader` with documentation available at [style-loader].
36
36
37
37
To begin, install `style-loader` and `css-loader`:
38
38
@@ -46,7 +46,7 @@ Inside your source file, import _atlas.min.css_:
46
46
import"azure-maps-control/dist/atlas.min.css";
47
47
```
48
48
49
-
Then add loaders to the module rules portion of the Webpack config:
49
+
Then add loaders to the module rules portion of the webpack config:
50
50
51
51
```js
52
52
module.exports= {
@@ -81,7 +81,7 @@ Embed a map in a web page using the map control npm package.
@@ -113,7 +113,7 @@ Embed a map in a web page using the map control npm package.
113
113
}
114
114
```
115
115
116
-
5. Create a Webpack config file named _webpack.config.js_ in the project's root folder. Include these settings in the config file.
116
+
5. Create a webpack config file named _webpack.config.js_ in the project's root folder. Include these settings in the config file.
117
117
118
118
```js
119
119
module.exports = {
@@ -265,7 +265,7 @@ The following sample shows how to import a module and use it in your application
265
265
document.body.onload = onload;
266
266
```
267
267
268
-
4. Webpack 5 may throw errors about not being able to resolve some node.js core modules. Add these settings to your Webpack config file to fix the problem.
268
+
4. Webpack 5 may throw errors about not being able to resolve some node.js core modules. Add these settings to your webpack config file to fix the problem.
269
269
270
270
```js
271
271
module.exports = {
@@ -305,7 +305,7 @@ Learn best practices and see samples:
0 commit comments