mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-30 04:00:00 -05:00
28600d6508
* Change copyright year from 2020 to 2021 Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Change copyright year in jetbrains copyright template Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
29 lines
866 B
JavaScript
29 lines
866 B
JavaScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
const CopyPlugin = require('copy-webpack-plugin');
|
|
const { when } = require('@craco/craco');
|
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
|
|
|
module.exports = {
|
|
webpack: {
|
|
plugins: [
|
|
new CopyPlugin({
|
|
patterns: [
|
|
{ from: 'node_modules/@hpcc-js/wasm/dist/graphvizlib.wasm', to: 'static/js' },
|
|
{ from: 'node_modules/@hpcc-js/wasm/dist/expatlib.wasm', to: 'static/js' },
|
|
{ from: 'node_modules/emojibase-data/en/data.json', to: 'static/js/emoji-data.json' }
|
|
],
|
|
}),
|
|
...when(Boolean(process.env.ANALYZE), () => [
|
|
new BundleAnalyzerPlugin({
|
|
analyzerMode: "static",
|
|
generateStatsFile: true
|
|
})
|
|
], [])
|
|
],
|
|
},
|
|
}
|