Building for production - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

You can use the following steps to build the application and deploy it to IIS:

  1. Open a command prompt, and navigate to the directory where you placed [InstallPath]\ClientExtension.

  2. Run the command npm run build.

    This command creates a new \dist folder, which contains the code that has been optimized for deployment. These files can be hosted on IIS and consumed using the Web Client.

  • Additional changes may be needed for some settings for the production build. For example, you might need to use https instead of http if configured for SSL or enable CORS.

  • View the browser console for any errors.