mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 02:06:29 -05:00
5574f09ef5
* Change dependencies * Use emoji-picker-element instead of emoji-mart * Optimize emoji-picker appeareance and data-source * Add twemoji font to emoji-picker * Add missing useEffect dependency * Add emoji-shortcode map * Include emoji-data into bundle and remove dynamic fetch * Rename shortcode-map * Fix emoji-picker being hidden on second attempt to open it * Add support for skin-tone short-codes * Remove whitespace line * Don't reinitialize the picker on every open * Fixed linting and test issues * Update CHANGELOG entry
23 lines
738 B
JavaScript
23 lines
738 B
JavaScript
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
|
|
})
|
|
], [])
|
|
],
|
|
},
|
|
}
|