Provide WebPack build options for microscopy, vtk, and ui
This commit is contained in:
1 parent
2234869b11
commit
2429294dda
9 files changed
+183
-24
No files matched your search
@@ -56,13 +56,13 @@ const cssRules = [
|
||||
];
|
||||
|
||||
var entry = path.join(__dirname, './src/index.js');
|
||||
const sourcePath = path.join(__dirname, './src');
|
||||
const outputPath = path.join(__dirname, './dist');
|
||||
const SRC_DIR = path.join(__dirname, './src');
|
||||
const OUTPUT_DIR = path.join(__dirname, './dist');
|
||||
|
||||
module.exports = {
|
||||
entry,
|
||||
output: {
|
||||
path: outputPath,
|
||||
path: OUTPUT_DIR,
|
||||
filename: 'index.umd.js',
|
||||
library: '@ohif/extension-vtk',
|
||||
libraryTarget: 'umd',
|
||||
@@ -98,7 +98,7 @@ module.exports = {
|
||||
path.resolve(__dirname, 'node_modules'),
|
||||
// Hoisted Yarn Workspace Modules
|
||||
path.resolve(__dirname, '../../node_modules'),
|
||||
sourcePath,
|
||||
SRC_DIR,
|
||||
],
|
||||
},
|
||||
externals: [
|
||||
|
||||
Reference in new issue
Block a user