diff options
author | silverwind <me@silverwind.io> | 2023-09-01 16:42:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 14:42:33 +0000 |
commit | 02efd990102481e8d6bd577d4feb874187a00182 (patch) | |
tree | 90f992f8a3971d9c58ab5fcaa2a65649ebd0e93e /webpack.config.js | |
parent | 327a7ad5185ea532389ff54b5faf91a8cf0429f3 (diff) | |
download | gitea-02efd990102481e8d6bd577d4feb874187a00182.tar.gz gitea-02efd990102481e8d6bd577d4feb874187a00182.zip |
Move licenses.txt to /assets directory (#26866)
Now that we have the `/assets` directory, we can put`licenses.txt`
directly into it instead of incorrect `/js` path which was previously
only done to avoid reserving a username.
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js index 497aca9224..c6b28068f0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -188,7 +188,7 @@ export default { filename: 'js/monaco-[name].[contenthash:8].worker.js', }), isProduction ? new LicenseCheckerWebpackPlugin({ - outputFilename: 'js/licenses.txt', + outputFilename: 'licenses.txt', outputWriter: ({dependencies}) => { const line = '-'.repeat(80); const goJson = readFileSync('assets/go-licenses.json', 'utf8'); @@ -211,7 +211,7 @@ export default { }, emitError: true, allow: '(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC OR CPAL-1.0 OR Unlicense OR EPL-1.0 OR EPL-2.0)', - }) : new AddAssetPlugin('js/licenses.txt', `Licenses are disabled during development`), + }) : new AddAssetPlugin('licenses.txt', `Licenses are disabled during development`), ], performance: { hints: false, @@ -239,7 +239,7 @@ export default { entrypoints: false, excludeAssets: [ /^js\/monaco-language-.+\.js$/, - !isProduction && /^js\/licenses.txt$/, + !isProduction && /^licenses.txt$/, ].filter(Boolean), groupAssetsByChunk: false, groupAssetsByEmitStatus: false, |