1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

feat: add copyright comment to bundle

This commit is contained in:
naorpeled
2026-02-13 22:55:22 +02:00
parent 507b205791
commit 8cc0b854e3
3 changed files with 9 additions and 3 deletions

View File

@@ -46,7 +46,7 @@
* Bowser - a browser detector * Bowser - a browser detector
* https://github.com/bowser-js/bowser * https://github.com/bowser-js/bowser
* MIT License | (c) Dustin Diaz 2012-2015 * 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 Parser from './parser.js';
import { import {

View File

@@ -2,7 +2,7 @@
* Bowser - a browser detector * Bowser - a browser detector
* https://github.com/bowser-js/bowser * https://github.com/bowser-js/bowser
* MIT License | (c) Dustin Diaz 2012-2015 * 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 Parser from './parser.js';
import { import {

View File

@@ -1,10 +1,16 @@
const path = require('path'); const path = require('path');
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const CompressionPlugin = require('compression-webpack-plugin'); 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 = { module.exports = {
plugins: [ plugins: [
new CompressionPlugin(), new CompressionPlugin(),
new webpack.BannerPlugin({ banner }),
], ],
mode: 'production', // "production" | "development" | "none" mode: 'production', // "production" | "development" | "none"
// Chosen mode tells webpack to use its built-in optimizations accordingly. // Chosen mode tells webpack to use its built-in optimizations accordingly.