mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
26 lines
549 B
TypeScript
26 lines
549 B
TypeScript
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
mode: 'production',
|
|
entry: {
|
|
mirador: './src/mirador-viewer/index.js'
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, '..' , 'dist/iiif/mirador'),
|
|
filename: '[name].js'
|
|
},
|
|
devServer: {
|
|
contentBase: '../dist/iiif/mirador',
|
|
},
|
|
resolve: {
|
|
fallback: {
|
|
url: false
|
|
}},
|
|
plugins: [new CopyWebpackPlugin({
|
|
patterns: [
|
|
{from: './src/mirador-viewer/mirador.html', to: './index.html'}
|
|
]
|
|
})]
|
|
};
|