Update Tesseract.js (#14708)
* [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
This commit is contained in:
parent
f0b6ddd979
commit
5fc5a9f9f1
7 changed files with 86 additions and 174 deletions
|
@ -5,7 +5,6 @@ const { basename, dirname, join, relative, resolve } = require('path');
|
|||
const { sync } = require('glob');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const AssetsManifestPlugin = require('webpack-assets-manifest');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const extname = require('path-complete-extname');
|
||||
const { env, settings, themes, output } = require('./configuration');
|
||||
const rules = require('./rules');
|
||||
|
@ -85,12 +84,6 @@ module.exports = {
|
|||
writeToDisk: true,
|
||||
publicPath: true,
|
||||
}),
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{ from: 'node_modules/tesseract.js/dist/worker.min.js', to: 'ocr' },
|
||||
{ from: 'node_modules/tesseract.js-core/tesseract-core.wasm.js', to: 'ocr' },
|
||||
],
|
||||
}),
|
||||
],
|
||||
|
||||
resolve: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue