mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Added webpack configuration for mirador.
This commit is contained in:
28
webpack/webpack.mirador.config.ts
Normal file
28
webpack/webpack.mirador.config.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
const HtmlWebpackPlugin = require('html-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'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.html$/i,
|
||||
loader: 'html-loader',
|
||||
},
|
||||
],
|
||||
},
|
||||
devServer: {
|
||||
contentBase: '../dist/iiif/mirador',
|
||||
},
|
||||
plugins: [new HtmlWebpackPlugin({
|
||||
filename: 'index.html',
|
||||
template: './src/mirador-viewer/mirador.html'
|
||||
})]
|
||||
};
|
Reference in New Issue
Block a user