sp-dev-fx-webparts/samples/js-dynamic-bundling-libraries
David Warner II 6d2d8731cb Dynamic SPFx Bundling/Loading Web Part Example (#628)
* Updated the api-scopes tutorial sample to SPFx v1.6.0 (#617)

* Dynamic SPFx Bundling Initial Commit
2018-10-03 08:02:22 -04:00
..
assets Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
config Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
src Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
.editorconfig Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
.gitignore Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
.yo-rc.json Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
README.md Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
gulpfile.js Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
package-lock.json Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
package.json Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
tsconfig.json Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00
tslint.json Dynamic SPFx Bundling/Loading Web Part Example (#628) 2018-10-03 08:02:22 -04:00

README.md

title of the sample

Summary

This sample illustrates how SPFx functionality and packages can be bundled in multiple '.js' files then be dynamically & asynchronously loaded into the page at execution time, such as with a button click.

Pre Button Click: preview

Post Button Click that imports jQuery and additional functionality: preview

Used SharePoint Framework Version

drop

Applies to

Solution

Solution Author(s)
js-dynamic-bundling-libaries David Warner II (@DavidWarnerII / Warner Digital)

Version history

Version Date Comments
1.0 September 21, 2018 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • in the command line run:
    • npm install
    • gulp serve

Features

This Web Part illustrates the following concepts on top of the SharePoint Framework:

  • How to separate SPFx functionality into multiple bundled files
  • How to asynchronously load the seperate bundled files at execution time
  • Including a library in the separate bundled file.

Additional Information: