瀏覽代碼

Fix build

Afshin T. Darian 4 年之前
父節點
當前提交
e3f57771d2

+ 2 - 1
builder/src/extensionConfig.ts

@@ -229,7 +229,8 @@ function generateConfig({
     plugins.push(
       new LicenseWebpackPlugin({
         perChunkOutput: false,
-        outputFilename: 'third-party-licenses.txt'
+        outputFilename: 'third-party-licenses.txt',
+        excludedPackageTest: packageName => packageName === data.name
       })
     );
   }

+ 3 - 1
dev_mode/webpack.prod.config.js

@@ -12,7 +12,9 @@ config[0] = merge(config[0], {
   plugins: [
     new LicenseWebpackPlugin({
       perChunkOutput: false,
-      outputFilename: 'third-party-licenses.txt'
+      outputFilename: 'third-party-licenses.txt',
+      excludedPackageTest: packageName =>
+        packageName === '@jupyterlab/application-top'
     })
   ]
 });

+ 3 - 1
dev_mode/webpack.prod.minimize.config.js

@@ -30,7 +30,9 @@ config[0] = merge(config[0], {
   plugins: [
     new LicenseWebpackPlugin({
       perChunkOutput: false,
-      outputFilename: 'third-party-licenses.txt'
+      outputFilename: 'third-party-licenses.txt',
+      excludedPackageTest: packageName =>
+        packageName === '@jupyterlab/application-top'
     })
   ]
 });

+ 3 - 1
jupyterlab/staging/webpack.prod.config.js

@@ -13,7 +13,9 @@ config[0] = merge(config[0], {
   plugins: [
     new LicenseWebpackPlugin({
       perChunkOutput: false,
-      outputFilename: 'third-party-licenses.txt'
+      outputFilename: 'third-party-licenses.txt',
+      excludedPackageTest: packageName =>
+        packageName === '@jupyterlab/application-top'
     })
   ]
 });

+ 3 - 1
jupyterlab/staging/webpack.prod.minimize.config.js

@@ -31,7 +31,9 @@ config[0] = merge(config[0], {
   plugins: [
     new LicenseWebpackPlugin({
       perChunkOutput: false,
-      outputFilename: 'third-party-licenses.txt'
+      outputFilename: 'third-party-licenses.txt',
+      excludedPackageTest: packageName =>
+        packageName === '@jupyterlab/application-top'
     })
   ]
 });