mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-773: Automatically generate dependencies for NPM modules.
This commit is contained in:
@@ -22,6 +22,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const ClosureWebpackPlugin = require('closure-webpack-plugin');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
||||
const DependencyListPlugin = require('./plugins/dependency-list-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const webpack = require('webpack');
|
||||
@@ -144,6 +145,10 @@ module.exports = {
|
||||
chunkFilename: '[id].guacamole.[contenthash].css'
|
||||
}),
|
||||
|
||||
// List all bundled node modules for sake of automatic LICENSE file
|
||||
// generation / sanity checks
|
||||
new DependencyListPlugin(),
|
||||
|
||||
// Automatically require used modules
|
||||
new webpack.ProvidePlugin({
|
||||
jstz: 'jstz',
|
||||
|
Reference in New Issue
Block a user