-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextra-webpack.config.js
30 lines (30 loc) · 1.07 KB
/
extra-webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// const path = require('path');
// const CopyWebpackPlugin = require('copy-webpack-plugin');
//
// const DIST_DIR = path.join(__dirname, './dist/playground');
module.exports = {
resolve: {
// We use this alias and the CopyPlugin below to support using the dynamic-import version
// of WADO Image Loader, but only when building a PWA. When we build a package, we must use the
// bundled version of WADO Image Loader so we can produce a single file for the viewer.
// (Note: script-tag version of the viewer will no longer be supported in OHIF v3)
alias: {
'@cornerstonejs/dicom-image-loader':
'@cornerstonejs/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js',
},
},
plugins: [
// Don't need as angular.json provide asset configuration
// new CopyWebpackPlugin({
// patterns: [
// {
// from: './node_modules/cornerstone-wado-image-loader/dist/dynamic-import',
// to: DIST_DIR,
// },
// ],
// options: {
// concurrency: 100,
// },
// }),
],
};