Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Expose JSS InsertionPoint (#397)
Browse files Browse the repository at this point in the history
Signed-off-by: timbotimbo <timbotimbo@users.noreply.github.com>
Co-authored-by: William Belcher <william.belcher@xa.epicgames.com>
(cherry picked from commit 8ba4101)

Co-authored-by: timbotimbo <timbotimbo@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and timbotimbo committed Oct 19, 2023
1 parent 16d80e2 commit 952b309
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,14 +526,16 @@ export class PixelStreamingApplicationStyle {
customStyles?: Partial<Styles>;
lightModePalette?: ColorPalette;
darkModePalette?: ColorPalette;
jssInsertionPoint?: string | HTMLElement;
}) {
const { customStyles, lightModePalette, darkModePalette } =
const { customStyles, lightModePalette, darkModePalette, jssInsertionPoint } =
options ?? {};
// One time setup with default plugins and settings.
const jssOptions = {
// JSS has many interesting plugins we may wish to turn on
//plugins: [functions(), template(), global(), extend(), nested(), compose(), camelCase(), defaultUnit(options.defaultUnit), expand(), vendorPrefixer(), propsSort()]
plugins: [global(), camelCase()]
plugins: [global(), camelCase()],
insertionPoint: jssInsertionPoint
};

jss.setup(jssOptions);
Expand Down

0 comments on commit 952b309

Please sign in to comment.