mirror of
https://github.com/funamitech/mastodon
synced 2024-12-15 23:28:31 +09:00
5fc5a9f9f1
* [WiP] Update Tesseract.js - Update Tesseract.js to 2.2.1 - Use versioned file names - differentiate two progression states: preparing OCR and detecting picture * Get rid of copy-webpack-plugin
15 lines
334 B
JavaScript
15 lines
334 B
JavaScript
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]',
|
|
},
|
|
},
|
|
};
|