Browse Source

Fix build issues with publicpath

Afshin T. Darian 4 years ago
parent
commit
45a949282b
2 changed files with 3 additions and 2 deletions
  1. 2 1
      jupyterlab/commands.py
  2. 1 1
      package.json

+ 2 - 1
jupyterlab/commands.py

@@ -1147,7 +1147,8 @@ class _AppHandler(object):
                 _rmtree(staging, self.logger)
                 os.makedirs(staging)
 
-        for fname in ['index.js', 'webpack.config.js',
+        for fname in ['index.js', 'publicpath.js',
+                      'webpack.config.js',
                       'webpack.prod.config.js',
                       'webpack.prod.minimize.config.js',
                       '.yarnrc', 'yarn.js']:

+ 1 - 1
package.json

@@ -27,7 +27,7 @@
     "build": "jlpm run build:dev",
     "build:builder": "cd builder && jlpm run build",
     "build:core": "cd jupyterlab/staging && jlpm && (jlpm deduplicate || jlpm) && jlpm run build",
-    "build:dev": "jlpm run integrity && jlpm run build:packages && cd dev_mode && jlpm run build && jlpm run build:builder",
+    "build:dev": "jlpm run integrity && jlpm run build:packages && jlpm run build:builder && cd dev_mode && jlpm run build",
     "build:dev:prod": "jlpm run integrity && jlpm run build:packages && cd dev_mode && jlpm run build:prod",
     "build:dev:prod:release": "jlpm run integrity && jlpm run build:packages && cd dev_mode && jlpm run build:prod:release",
     "build:examples": "lerna run build --scope \"@jupyterlab/example-*\"",