Skip to content

Build options: JS Libs

Andrew Koltyakov edited this page Oct 4, 2017 · 1 revision

Build tools can bundle 3rd party JavaScript libraries.

Libraries' JavaScript paths are configured in ./config/app.json within the following parameters:

{
  ...
  "bundleJSLibsFiles": [
    "./node_modules/es6-promise/dist/es6-promise.auto.min.js",
    "./node_modules/whatwg-fetch/fetch.js",
    "./node_modules/sp-pnp-js/dist/pnp.js"
  ],
  ...
}

It's recommended installing 3rd parties using npm or bower then configuring bundling within the build tools.