1 | [![CircleCI](https://circleci.com/gh/Microsoft/Essex-PowerBI-visuals-base/tree/master.svg?style=svg)](https://circleci.com/gh/Microsoft/Essex-PowerBI-visuals-base/tree/master)
|
2 |
|
3 | # Essex PBI Base
|
4 |
|
5 | A collection of utilities for creating custom visuals.
|
6 |
|
7 | # Notes
|
8 | ## Bundling
|
9 | Implementers should mark powerbi as an externally loaded resource so that the PowerBI client codebase
|
10 | is not bundled into custom visuals.
|
11 |
|
12 | ```
|
13 | externals: {
|
14 | "powerbi-visuals/lib/powerbi-visuals": "powerbi"
|
15 | }
|
16 | ```
|
17 |
|
18 | ## Build Support
|
19 | To use the bundling tasks, add the following to your gulpfile.js
|
20 |
|
21 | ```javascript
|
22 | // gulpfile.js
|
23 | const gulp = require('gulp');
|
24 | const configure = require("essex.powerbi.base/dist/build_scripts").default;
|
25 | configure(gulp, __dirname);
|
26 | ```
|