Resolves https://github.com/webrecorder/browsertrix-cloud/issues/1333 - Moves "Select Crawls" / "Select Uploads" steps into a single "Select Archived Items" dialog - Refactors new collection metadata dialog to accept editing existing collection - Prevents RWP component from rendering if there are no archived items (@Shrinks99 made a comment about this figma, but this prevents unnecessary requests when there isn't an archive to replay) - Shows collection description at bottom of detail page at all times (@Shrinks99 seems useful to see even on archived items view?) - Switches collection detail primary action to "Add Archived Items" if none are included (cc @Shrinks99) - Displays friendlier "name taken" error - Removes unused Collection edit route - Upgrades markdown dependencies for fixes/improvements to description editing --------- Co-authored-by: Henry Wilkinson <henry@wilkinson.graphics>
35 lines
737 B
JavaScript
35 lines
737 B
JavaScript
const { merge } = require("webpack-merge");
|
|
const TerserPlugin = require("terser-webpack-plugin");
|
|
|
|
const [main, vnc] = require("./webpack.config.js");
|
|
|
|
module.exports = [
|
|
merge(main, {
|
|
mode: "production",
|
|
devtool: "source-map",
|
|
|
|
// TODO figure out minifying lit templates
|
|
optimization: {
|
|
runtimeChunk: "single",
|
|
splitChunks: {
|
|
// Split both async and non-async chunks (only async by default)
|
|
chunks: "all",
|
|
},
|
|
minimize: true,
|
|
minimizer: [
|
|
new TerserPlugin({
|
|
terserOptions: {
|
|
compress: {
|
|
drop_console: ["log", "info"],
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
},
|
|
}),
|
|
{
|
|
...vnc,
|
|
mode: "production",
|
|
},
|
|
];
|