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 (#390)
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>
  • Loading branch information
timbotimbo and Belchy06 authored Oct 19, 2023
1 parent af5339b commit 8ba4101
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 8ba4101

Please sign in to comment.