From 8cc0b854e3ad0177073873f7a2cb0005f689b8ee Mon Sep 17 00:00:00 2001 From: naorpeled Date: Fri, 13 Feb 2026 22:55:22 +0200 Subject: [PATCH] feat: add copyright comment to bundle --- docs/bowser.js.html | 2 +- src/bowser.js | 2 +- webpack.config.js | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/bowser.js.html b/docs/bowser.js.html index eea9571..afaffa5 100644 --- a/docs/bowser.js.html +++ b/docs/bowser.js.html @@ -46,7 +46,7 @@ * Bowser - a browser detector * https://github.com/bowser-js/bowser * MIT License | (c) Dustin Diaz 2012-2015 - * MIT License | (c) Denis Demchenko 2015-2019 + * MIT License | (c) Denis Demchenko 2015-2026 */ import Parser from './parser.js'; import { diff --git a/src/bowser.js b/src/bowser.js index fd19706..66d9545 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -2,7 +2,7 @@ * Bowser - a browser detector * https://github.com/bowser-js/bowser * MIT License | (c) Dustin Diaz 2012-2015 - * MIT License | (c) Denis Demchenko 2015-2019 + * MIT License | (c) Denis Demchenko 2015-2026 */ import Parser from './parser.js'; import { diff --git a/webpack.config.js b/webpack.config.js index 03b058b..3f194e6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,10 +1,16 @@ const path = require('path'); -// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const CompressionPlugin = require('compression-webpack-plugin'); +const webpack = require('webpack'); + +const banner = `Bowser - a browser detector +https://github.com/lancedikson/bowser +MIT License | (c) Dustin Diaz 2012-2015 +MIT License | (c) Denis Demchenko 2015-2026`; module.exports = { plugins: [ new CompressionPlugin(), + new webpack.BannerPlugin({ banner }), ], mode: 'production', // "production" | "development" | "none" // Chosen mode tells webpack to use its built-in optimizations accordingly.