1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-12-23 02:58:23 +09:00
whippy-edition/config/webpack/rules/tesseract.js

15 lines
334 B
JavaScript
Raw Normal View History

module.exports = {
test: [
/tesseract\.js\/dist\/worker\.min\.js$/,
/tesseract\.js\/dist\/worker\.min\.js.map$/,
/tesseract\.js-core\/tesseract-core\.wasm$/,
/tesseract\.js-core\/tesseract-core\.wasm.js$/,
],
use: {
loader: 'file-loader',
options: {
name: 'ocr/[name]-[hash].[ext]',
},
},
};