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:
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user