Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

feat: add license-webpack-plugin@4 #11

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/license-webpack-plugin@4/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@rspack-compat/license-webpack-plugin_4",
"scripts": {
"build": "rspack build"
},
"devDependencies": {
"@rspack/cli": "0.3.11",
"license-webpack-plugin": "^4.0.2"
},
"rspack": {
"version": ">=0.3.11"
}
}
15 changes: 15 additions & 0 deletions packages/license-webpack-plugin@4/rspack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { defineConfig } = require('@rspack/cli')
const { LicenseWebpackPlugin } = require("license-webpack-plugin");

module.exports = defineConfig({
plugins: [
new LicenseWebpackPlugin({
stats: {
warnings: false,
errors: false
},
perChunkOutput: true,
outputFilename: `3rdpartylicenses.txt`
}),
]
});
3 changes: 3 additions & 0 deletions packages/license-webpack-plugin@4/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function main() {
return 'hello world'
}
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.