Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 641 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 641 Bytes

SPFx Demo - Add a type declaration reference

This demo is based off the SPFx RC0 Code Drop.

In this demo, we are loading the jQuery library from a CDN, not from a module. @types/jquery is installed via npm and then imported in the webpart source.

Updates include: Included @types/jquery Updated config/config.json by including the external reference for how to load our external component (in this case jQuery).

Similar in scope to: https://dev.office.com/sharepoint/docs/spfx/web-parts/basics/add-an-external-library

Building the code

git clone the repo
cd External-Library
npm install
gulp serve

Build options