Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix text file loading in worker

Ilian Sapundshievdb835e1037ab
diff --git a/webpack.config.worker.dev.js b/webpack.config.worker.dev.js
index cdaa19996..ce9c16e9c 100644
--- a/webpack.config.worker.dev.js
+++ b/webpack.config.worker.dev.js
@@ -110,6 +110,11 @@ export default merge.smart(baseConfig, {
}
}]
},
+ // Text files
+ {
+ test: /\.(txt)$/,
+ use: 'raw-loader'
+ },
// Common Image Formats
{
test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,
diff --git a/webpack.config.worker.prod.js b/webpack.config.worker.prod.js
index 696744622..056a21935 100644
--- a/webpack.config.worker.prod.js
+++ b/webpack.config.worker.prod.js
@@ -105,6 +105,11 @@ export default merge.smart(baseConfig, {
}
}]
},
+ // Text files
+ {
+ test: /\.(txt)$/,
+ use: 'raw-loader'
+ },
// Common Image Formats
{
test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,