You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,10 @@ yarn build # to build the project
168
168
Afterwards, you can find the build output in the `dist` folder of the corresponding package folder.
169
169
For example, to find the Button component (that belongs to the `main` package), look inside the `packages/main/dist` folder.
170
170
171
+
*Note: before building the project you can also set the `PUBLIC_DEPLOY_PATH` environment variable to specify the path where non-bundled assets will be fetched from*
Copy file name to clipboardExpand all lines: docs/Configuration.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ language | en, de, es, etc... | en |
14
14
calendarType | Gregorian, Islamic, Buddhist, Japanese, Persian | Gregorian | Default calendar type for date-related web components
15
15
[noConflict](#noConflict) | true, false | false | When set to true, all events will be fired with a "ui5-" prefix only
16
16
[formatSettings](#formatSettings)| See the [Format settings](#formatSettings) section below | Empty object | Allows to override locale-specific configuration
17
-
[assetsPath](#assetsPath)| See the [Assets path](#assetsPath) section below | `/resources/` | Allows to set the assets path at runtime
17
+
[assetsPath](#assetsPath)| See the [Assets path](#assetsPath) section below | Empty string | Allows to set the assets path at runtime
18
18
19
19
### Content Density
20
20
@@ -105,10 +105,11 @@ firstDayOfWeek | 0 (Sunday) through 6 (Saturday) | *Depends on locale* | Whe
105
105
<aname="assetsPath"></a>
106
106
### Assets path
107
107
108
-
<b>Note:</b> This configuration setting only has effect for bundles, created with the UI5 Web Components tools (`@ui5/webcomponents-tools`).
109
-
110
-
The `assetsPath` setting allows to override the path where asset files (most commonly `.json` ) are located. UI5 Web Components `tools` use `rollup`
111
-
with the `rollup-plugin-url` plugin and `/resources/` is set as the default directory for all non-bundled assets.
108
+
This configuration setting allows to set the path where asset files (most commonly `.json` ) that are to be fetched at runtime, are located. These are:
109
+
- Icon collections
110
+
-`i18n` message bundles
111
+
-`CLDR` files
112
+
- Additional themes
112
113
113
114
For some scenarios the same bundle will be reused from different directories, or the directory structure is unknown in advance. Therefore it's
114
115
necessary to be able to pass the right directory at runtime, most commonly inside the configuration script directly:
@@ -122,7 +123,6 @@ Example:
122
123
</script>
123
124
```
124
125
125
-
126
126
## Configuration script
127
127
128
128
In order to provide configuration settings, include the following ```<script>``` element in your HTML page:
0 commit comments