This produces the bundled build and puts it in the out directory. Run the following command from the console. In the root directory of the project, create an index.html file that will be an entry point for the application: The body of the function remains without changes. The code above makes use of the dynamic imports, which is the recommended way of the dynamic code splitting for the Webpack. It will produce the package.json file similar to the one below: ). Follow the instructions in Project setup to set up. If this is the first time using Azure Artifacts with npm, select Get the tools and follow the instructions to install the prerequisites. Select npm from the list of package types. In order to be able to use the HERE Maps API for JavaScript with NPM the HERE public repository must be added to the NPM configuration: npm config set Īssuming that the node.js and npm are installed create a directory that will contain the project and run from the console the following command: npm init The following steps will help set up your other config file: Select Artifacts, and then select Connect to feed. The sections below provide the simple boilerplate code that produces the output for the bundler of choice. This section shows how to bundle the HERE Maps API for JavaScript with the help of several most common bundlers such as Webpack and Rollup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |