weblate/client/webpack.config.js
Mehdi Eloualy 69ff5b5761
feat: Add webpack bundling for client side libraries. (#12227)
* Add webpack bundeling for client side libraries.

Started with Sentry.

* Fix docs, sentry version, and yarn update script.

- Moved the documentation for installing libraries into `docs/contributing/frontend.rst`
- Used the exact version of Sentry.
- Removed Sentry from old `yarn-update` script

* Remove sentry and browserify from scripts/yarn/package.json

It is no longer needed here.

* Remove unused License: BSD-3-Clause

* Modify yarn-update.yml to update client/ packages

* Trigger yarn update on client/* changes

* Add standalone license file for Sentry

The license header in the file gets overwritten by yarn build.

* Update yarn.lock

Co-authored-by: Michal Čihař <michal@cihar.com>
2024-08-09 12:59:29 +02:00

17 lines
365 B
JavaScript

// Copyright © Michal Čihař <michal@weblate.org>
//
// SPDX-License-Identifier: GPL-3.0-or-later
const path = require("node:path");
module.exports = {
entry: {
main: "./src/main.js",
sentry: "./src/sentry.js",
},
mode: "production",
output: {
filename: "[name].js",
path: path.resolve(__dirname, "../weblate/static/js/vendor"),
},
};