Browse Source

Revert "Fix tests"

This reverts commit 4f14b4b79c.
pull/288/head
Jerome Wu 6 years ago
parent
commit
9c854a4afa
  1. 3
      scripts/webpack.config.dev.js
  2. 5
      scripts/webpack.config.prod.js
  3. 1
      tests/recognize.test.js

3
scripts/webpack.config.dev.js

@ -31,9 +31,6 @@ module.exports = [ @@ -31,9 +31,6 @@ module.exports = [
libraryTarget: 'umd',
}),
genConfig({
optimization: {
minimize: false,
},
entry: path.resolve(__dirname, '..', 'src', 'index.js'),
filename: 'tesseract.asm.dev.js',
library: 'Tesseract',

5
scripts/webpack.config.prod.js

@ -7,7 +7,7 @@ const genConfig = ({ @@ -7,7 +7,7 @@ const genConfig = ({
...common,
...config,
mode: 'production',
devtool: 'source-map',
// devtool: 'source-map',
entry,
output: {
path: path.resolve(__dirname, '..', 'dist'),
@ -25,9 +25,6 @@ module.exports = [ @@ -25,9 +25,6 @@ module.exports = [
libraryTarget: 'umd',
}),
genConfig({
optimization: {
minimize: false,
},
entry: path.resolve(__dirname, '..', 'src', 'index.js'),
filename: 'tesseract.asm.min.js',
library: 'Tesseract',

1
tests/recognize.test.js

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
const { TesseractWorker } = Tesseract;
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
const IMAGE_PATH = 'http://localhost:3000/tests/assets/images';
const SIMPLE_TEXT = 'Tesseract.js\n';

Loading…
Cancel
Save