mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Mirador webpack build fix.
This commit is contained in:
@@ -6,5 +6,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="mirador"></div>
|
<div id="mirador"></div>
|
||||||
|
<script src="mirador.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -10,19 +10,16 @@ module.exports = {
|
|||||||
path: path.resolve(__dirname, '..' , 'dist/iiif/mirador'),
|
path: path.resolve(__dirname, '..' , 'dist/iiif/mirador'),
|
||||||
filename: '[name].js'
|
filename: '[name].js'
|
||||||
},
|
},
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.html$/i,
|
|
||||||
loader: 'html-loader',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
devServer: {
|
devServer: {
|
||||||
contentBase: '../dist/iiif/mirador',
|
contentBase: '../dist/iiif/mirador',
|
||||||
},
|
},
|
||||||
plugins: [new HtmlWebpackPlugin({
|
resolve: {
|
||||||
filename: 'index.html',
|
fallback: {
|
||||||
template: './src/mirador-viewer/mirador.html'
|
url: false
|
||||||
|
}},
|
||||||
|
plugins: [new CopyWebpackPlugin({
|
||||||
|
patterns: [
|
||||||
|
{from: './src/mirador-viewer/mirador.html', to: './index.html'}
|
||||||
|
]
|
||||||
})]
|
})]
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user