Skip to content

Commit 79783b0

Browse files
committed
Adds license generation to build
1 parent 4199377 commit 79783b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

webpack.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function getExtensionConfig(target, mode, env) {
120120
plugins.push(
121121
new ContributionsPlugin(),
122122
new DocsPlugin(),
123+
new LicensesPlugin(),
123124
new FantasticonPlugin({
124125
configPath: '.fantasticonrc.js',
125126
onBefore:
@@ -848,6 +849,16 @@ class DocsPlugin extends FileGeneratorPlugin {
848849
}
849850
}
850851

852+
class LicensesPlugin extends FileGeneratorPlugin {
853+
constructor() {
854+
super('licenses', [path.join(__dirname, 'package.json')], {
855+
name: 'licenses',
856+
command: pkgMgr,
857+
args: ['run', 'generate:licenses'],
858+
});
859+
}
860+
}
861+
851862
class FantasticonPlugin {
852863
alreadyRun = false;
853864

0 commit comments

Comments
 (0)