Skip to content

Commit f71e846

Browse files
Andrea Barbassoatarix83
authored andcommitted
Merged in DSC-994 (pull request DSpace#563)
[DSC-994] ignore optional UI framework dependencies Approved-by: Giuseppe Digilio
2 parents e8b4865 + 9011685 commit f71e846

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

webpack/webpack.mirador.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const webpack = require('webpack');
12
const CopyWebpackPlugin = require('copy-webpack-plugin');
23
const path = require('path');
34

@@ -17,7 +18,11 @@ module.exports = {
1718
fallback: {
1819
url: false
1920
}},
20-
plugins: [new CopyWebpackPlugin({
21+
plugins: [
22+
new webpack.IgnorePlugin({
23+
resourceRegExp: /@blueprintjs\/(core|icons)/, // ignore optional UI framework dependencies
24+
}),
25+
new CopyWebpackPlugin({
2126
patterns: [
2227
{from: './src/mirador-viewer/mirador.html', to: './index.html'}
2328
]

0 commit comments

Comments
 (0)