Skip to content

Commit 16f5cb4

Browse files
authored
Add JSONLicenseWebpackPlugin (jupyter#6896)
1 parent a605fa9 commit 16f5cb4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const BundleAnalyzerPlugin =
1414
require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
1515

1616
const Build = require('@jupyterlab/builder').Build;
17+
const WPPlugin = require('@jupyterlab/builder').WPPlugin;
1718
const baseConfig = require('@jupyterlab/builder/lib/webpack.config.base');
1819

1920
const data = require('./package.json');
@@ -219,6 +220,10 @@ module.exports = [
219220
fallback: { util: false },
220221
},
221222
plugins: [
223+
new WPPlugin.JSONLicenseWebpackPlugin({
224+
excludedPackageTest: (packageName) =>
225+
packageName === '@jupyter-notebook/app',
226+
}),
222227
new ModuleFederationPlugin({
223228
library: {
224229
type: 'var',

0 commit comments

Comments
 (0)