Select Git revision
nwb.config.js
Loïs Poujade authored
- if no Openseadragon instance, use a VideoViewerReference (based on OSDReferences) to get canvas size & DOM element - add 2 number fields to specify annotation start/end - speed up build by removing umd (not used in our dev setup) and demo build - remove conflicting dependencies Both removed dependencies are installed at a lower version by another dependence (immutable is installed by draft-js-*)
nwb.config.js 576 B
const path = require('path');
module.exports = {
type: 'react-component',
npm: {
esModules: true,
// umd: {
// global: 'MiradorAnnotation',
// externals: {
// react: 'React',
// },
// },
},
webpack: {
aliases: {
'@material-ui/core': path.resolve('./', 'node_modules', '@material-ui/core'),
'@material-ui/styles': path.resolve('./', 'node_modules', '@material-ui/styles'),
react: path.resolve('./', 'node_modules', 'react'),
'react-dom': path.resolve('./', 'node_modules', 'react-dom'),
},
},
};