123456789101112131415161718192021222324252627 |
- const merge = require('webpack-merge').default;
- const config = require('./webpack.config');
- const LicenseWebpackPlugin = require('license-webpack-plugin')
- .LicenseWebpackPlugin;
- config[0] = merge(config[0], {
- mode: 'production',
- devtool: 'source-map',
- output: {
- // Add version argument when in production so the Jupyter server
- // allows caching of files (i.e., does not set the CacheControl header to no-cache to prevent caching static files)
- filename: '[name].[contenthash].js?v=[contenthash]'
- },
- optimization: {
- minimize: false
- },
- plugins: [
- new LicenseWebpackPlugin({
- perChunkOutput: false,
- outputFilename: 'third-party-licenses.txt',
- excludedPackageTest: packageName =>
- packageName === '@jupyterlab/application-top'
- })
- ]
- });
- module.exports = config;
|