mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Updated mirador webpack configuration.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -39,3 +39,5 @@ package-lock.json
|
|||||||
/nbproject/
|
/nbproject/
|
||||||
|
|
||||||
junit.xml
|
junit.xml
|
||||||
|
|
||||||
|
/src/mirador-viewer/config.local.js
|
||||||
|
@@ -1,4 +1,17 @@
|
|||||||
import Mirador from 'mirador/dist/es/src/index';
|
import Mirador from 'mirador/dist/es/src/index';
|
||||||
|
|
||||||
|
// You can modify this default Mirador configuration file. However,
|
||||||
|
// you should consider creating a copy of this file named
|
||||||
|
// 'index.local.js'. If that file exists it will be used to build
|
||||||
|
// your local Mirador instance. This allows you to keep local
|
||||||
|
// Mirador configuration separate from this default distribution
|
||||||
|
// copy.
|
||||||
|
|
||||||
|
// For an example of all Mirador configuration options, see
|
||||||
|
// https://github.com/ProjectMirador/mirador/blob/master/src/config/settings.js
|
||||||
|
|
||||||
|
// You can add or remove plugins. When adding new plugins be sure to also
|
||||||
|
// import them into the project via your package.json dependencies.
|
||||||
import miradorShareDialogPlugin from 'mirador-share-plugin/es/MiradorShareDialog';
|
import miradorShareDialogPlugin from 'mirador-share-plugin/es/MiradorShareDialog';
|
||||||
import miradorSharePlugin from 'mirador-share-plugin/es/miradorSharePlugin';
|
import miradorSharePlugin from 'mirador-share-plugin/es/miradorSharePlugin';
|
||||||
import miradorDownloadPlugin from 'mirador-dl-plugin/es/miradorDownloadPlugin';
|
import miradorDownloadPlugin from 'mirador-dl-plugin/es/miradorDownloadPlugin';
|
@@ -1,10 +1,13 @@
|
|||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
// @ts-ignore
|
||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: {
|
entry: {
|
||||||
mirador: './src/mirador-viewer/index.js'
|
mirador: fs.existsSync('./src/mirador-viewer/config.local.js')? './src/mirador-viewer/config.local.js' :
|
||||||
|
'./src/mirador-viewer/config.default.js'
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, '..' , 'dist/iiif/mirador'),
|
path: path.resolve(__dirname, '..' , 'dist/iiif/mirador'),
|
||||||
|
Reference in New Issue
Block a user