We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ac8c5 commit c4deb63Copy full SHA for c4deb63
client.html
@@ -8,7 +8,13 @@
8
(function () {
9
var basePath = location.pathname.replace(/\/+[^\/]*$/, '/'),
10
internConfig = this.__internConfig = {
11
- baseUrl: basePath,
+ // For users running client.html directly, assume that the base path
12
+ // is two levels up (the parent of node_modules); this is most common.
13
+ // Users that need something special should provide an absolute module
14
+ // path for the config module (e.g. `/path/to/intern/config`) and
15
+ // then set `baseUrl` correctly in the `loader` configuration object
16
+ // of the config module
17
+ baseUrl: basePath === '/__intern/' ? '/' : (basePath + '../../'),
18
packages: [
19
{ name: 'intern', location: basePath }
20
],
0 commit comments