0.44.1 • Published 3 years ago

@fluidframework/webpack-fluid-loader v0.44.1

Weekly downloads
645
License
MIT
Repository
github
Last release
3 years ago

@fluidframework/webpack-fluid-loader

This folder contains the webpack-fluid-loader. This package is meant to be used with the webpack-dev-server and is used by yo Fluid as the default start option.

This loader is intended for development purposes only and should not be used in production.

The following environment variables can be defined when running webpack-dev-server to change the behavior of webpack-fluid-loader:

variabledescription
modeSpecify the mode to run in. See modes below.
singleLoad Fluid object normally when using local mode for ordering, etc.
fluidHostHost url to target while testing. If you supply this, you must supply a tenant ID and secret
tenantIdTenant ID for your host. If you supply this you must supply a tenant secret
tenantSecretSecret for your tenant
bearerSecretSecret for your bearer
modesdescription
dockerUse docker running routerlicious server for ordering, etc. You'll need to start this service locally
r11sUse remote routerlicious server for ordering, etc.
localLoad Fluid object in two side-by-side divs using test-driver (default option)
tinyliciousRun against a local instance of tinylicious. You'll need to start this service locally
spo-dfUse SharePoint DogFood server with your personal OneDrive for storage
spoUse SharePoint server with your personal OneDrive for storage

Manually attach the container

In all modes you can start a detached container that you can later attach by appending /manualAttach to the url. For example - http://localhost:8080/manualAttach.

You can interact with the Fluid object and do any number of operations before clicking the Attach Container button to attach the container.

If in side by side mode, only one side will be visible until attached.

Connecting to a remote server

To connect to a remote server, a host, tenant ID, tenant secret, and npm registry must be provided. These can be provided in the following ways (looked for in the following order):

command line:

npm run start -- --env.fluidHost https://fluidhost.com --env.tenantId my_tenant --env.tenantSecret my_secret --env.bearerSecret bear_secret --env.npm npm.com

environment variables:

  • fluid__webpack__fluidHost
  • fluid__webpack__tenantId
  • fluid__webpack__tenantSecret
  • fluid__webpack__bearerSecret
  • fluid__webpack__npm

config file:

or in an optional config.json file in the baseDir passed into webpack-fluid-loader.after() that looks like this:

{
    "fluid": {
        "webpack": {
            "fluidHost": "https://fluidhost.com",
            "tenantId": "my_tenant",
            "tenantSecret": "my_secret",
            "bearerSecret": "bear_secret",
            "npm": "npm.com"
        }
    }
}

SharePoint

To use a SharePoint server, the Microsoft login clientId and secret environment variables must be set. This can be done by running the getkeys tool.

Sometimes the cached tokens are out of date or incorrect, and it will not automatically refresh them. They can be manually refreshed by going navigating to http://localhost:8080/odspLogin (port may vary). To force reauth on start, the env variable odspForceReauth can be set. This can also be done by adding --env.mode forceReauth true to the end of the command. For example: npm run start:spo-df -- --env.mode forceReauth true.

Use spo-df if your OneDrive is on the DogFood server, and spo if it is not.

0.44.1

3 years ago

0.39.8

3 years ago

0.44.0

3 years ago

0.39.7

3 years ago

0.44.0-30858

3 years ago

0.42.4

3 years ago

0.43.1

3 years ago

0.43.0

3 years ago

0.42.2

3 years ago

0.42.3

3 years ago

0.42.1

3 years ago

0.39.6

3 years ago

0.39.5

3 years ago

0.42.0-28410

3 years ago

0.42.0

3 years ago

0.41.3

3 years ago

0.41.4

3 years ago

0.41.2

3 years ago

0.42.0-27644

3 years ago

0.40.3

3 years ago

0.42.0-27549

3 years ago

0.42.0-27677

3 years ago

0.42.0-27683

3 years ago

0.41.1

3 years ago

0.41.0-27154

3 years ago

0.40.2

3 years ago

0.40.0

3 years ago

0.40.1

3 years ago

0.41.0

3 years ago

0.39.4

3 years ago

0.41.0-25957

3 years ago

0.40.0-25719

3 years ago

0.40.0-25851

3 years ago

0.38.2

3 years ago

0.38.1

3 years ago

0.38.4

3 years ago

0.38.3

3 years ago

0.39.0-23272

3 years ago

0.39.1

3 years ago

0.39.0

3 years ago

0.39.3

3 years ago

0.39.2

3 years ago

0.39.0-23254

3 years ago

0.38.0

3 years ago

0.38.0-22040

3 years ago

0.38.0-22000

3 years ago

0.38.0-21934

3 years ago

0.37.3-21287

3 years ago

0.37.4

3 years ago

0.37.3

3 years ago

0.37.2

3 years ago

0.37.1

3 years ago

0.37.0

3 years ago

0.37.0-20517

3 years ago

0.37.0-20427

3 years ago

0.36.2-20364

3 years ago

0.35.7-20343

3 years ago

0.36.1

3 years ago

0.35.5

3 years ago

0.35.6

3 years ago

0.36.0-18883

3 years ago

0.36.0

3 years ago

0.35.4

3 years ago

0.33.5

3 years ago

0.34.3

3 years ago

0.35.3

3 years ago

0.34.2

3 years ago

0.33.4

3 years ago

0.35.2

3 years ago

0.35.1

3 years ago

0.35.0

3 years ago

0.35.0-16887

3 years ago

0.35.0-16170

3 years ago

0.34.1

3 years ago

0.34.0

3 years ago

0.34.0-14942

3 years ago

0.33.3

3 years ago

0.32.5

3 years ago

0.32.4

3 years ago

0.33.2

3 years ago

0.33.1

3 years ago

0.33.0-13708

3 years ago

0.33.0

3 years ago

0.32.3

3 years ago

0.31.2

3 years ago

0.32.2

3 years ago

0.32.1

3 years ago

0.32.0

3 years ago

0.31.1

3 years ago

0.31.0

3 years ago

0.30.4

3 years ago

0.30.3

3 years ago

0.30.2

3 years ago

0.30.1

3 years ago

0.30.0

3 years ago

0.29.4

3 years ago

0.29.3

3 years ago

0.28.9

3 years ago

0.29.2

3 years ago

0.28.8

3 years ago

0.29.1

3 years ago

0.29.0

3 years ago

0.28.7

3 years ago

0.27.15

3 years ago

0.27.14

3 years ago

0.28.6

3 years ago

0.27.13

4 years ago

0.28.5

4 years ago

0.27.12

4 years ago

0.28.4

4 years ago

0.28.3

4 years ago

0.27.11

4 years ago

0.28.2

4 years ago

0.28.1

4 years ago

0.27.10

4 years ago

0.28.0

4 years ago

0.27.9

4 years ago

0.26.10

4 years ago

0.27.8

4 years ago

0.27.7

4 years ago

0.26.9

4 years ago

0.27.6

4 years ago

0.26.8

4 years ago

0.27.5

4 years ago

0.26.7

4 years ago

0.27.4

4 years ago

0.26.6

4 years ago

0.26.5

4 years ago

0.27.3

4 years ago

0.26.4

4 years ago

0.27.2

4 years ago

0.27.1

4 years ago

0.26.3

4 years ago

0.26.2

4 years ago

0.27.0

4 years ago

0.26.1

4 years ago

0.26.0

4 years ago

0.26.0-3177

4 years ago