diff --git a/.gitignore b/.gitignore
index 2f837a7..d6c3879 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ worker.dev.js
/*.traineddata
/examples/**/*.traineddata
.nyc_output
+dist
diff --git a/README.md b/README.md
index 5b0e34b..43f5422 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ Tesseract.js works with a `
+
```
After including your scripts, the `Tesseract` variable will be defined globally!
diff --git a/docs/local-installation.md b/docs/local-installation.md
index 5d09d50..a26cc90 100644
--- a/docs/local-installation.md
+++ b/docs/local-installation.md
@@ -8,9 +8,9 @@ In Node.js environment, the only path you may want to customize is languages/lan
```javascript
const worker = Tesseract.TesseractWorker({
- workerPath: 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js@v2.0.0-alpha.2/dist/worker.min.js',
+ workerPath: 'https://unpkg.com/tesseract.js@v2.0.0-alpha.3/dist/worker.min.js',
langPath: 'https://tessdata.projectnaptha.com/4.0.0',
- corePath: 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js-core@v2.0.0-beta.5/tesseract-core.js',
+ corePath: 'https://unpkg.com/tesseract.js-core@v2.0.0-beta.5/tesseract-core.js',
});
```
diff --git a/src/browser/index.js b/src/browser/index.js
index 2e02fb5..4f93f0c 100644
--- a/src/browser/index.js
+++ b/src/browser/index.js
@@ -78,12 +78,12 @@ exports.defaultOptions = {
...defaultOptions,
workerPath: process.env.TESS_ENV === 'development'
? resolveURL(`/dist/worker.dev.js?nocache=${Math.random().toString(36).slice(3)}`)
- : `https://cdn.jsdelivr.net/gh/naptha/tesseract.js@v${version}/dist/worker.min.js`,
+ : `https://unpkg.com/tesseract.js@v${version}/dist/worker.min.js`,
/*
* If browser doesn't support WebAssembly,
* load ASM version instead
*/
- corePath: `https://cdn.jsdelivr.net/gh/naptha/tesseract.js-core@v2.0.0-beta.5/tesseract-core${typeof WebAssembly === 'object' ? '' : '.asm'}.js`,
+ corePath: `https://unpkg.com/tesseract.js-core@v2.0.0-beta.5/tesseract-core${typeof WebAssembly === 'object' ? '' : '.asm'}.js`,
};
/**