Merge remote-tracking branch 'origin/main' into w2p-90978_Improve-initial-page-load_PR

This commit is contained in:
Yura Bondarenko
2022-05-13 09:32:34 +02:00
156 changed files with 2469 additions and 548 deletions

View File

@@ -1,4 +1,4 @@
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
module.exports = {
@@ -10,19 +10,16 @@ module.exports = {
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'
resolve: {
fallback: {
url: false
}},
plugins: [new CopyWebpackPlugin({
patterns: [
{from: './src/mirador-viewer/mirador.html', to: './index.html'}
]
})]
};