Clean up/rationalise webpack paths and thereby increase compatibility for Win… (#2585)
This commit is contained in:
parent
080357a4f5
commit
9f87fec52d
@ -88,8 +88,8 @@ module.exports = {
|
|||||||
from: "tesseract/**/*",
|
from: "tesseract/**/*",
|
||||||
to: "assets/"
|
to: "assets/"
|
||||||
}, {
|
}, {
|
||||||
context: "node_modules/tesseract.js/",
|
context: "node_modules/tesseract.js/dist",
|
||||||
from: "dist/worker.min.js",
|
from: "worker.min.js",
|
||||||
to: "assets/tesseract"
|
to: "assets/tesseract"
|
||||||
}, {
|
}, {
|
||||||
context: "node_modules/tesseract.js-core/",
|
context: "node_modules/tesseract.js-core/",
|
||||||
@ -221,7 +221,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{ // Third party images are inlined
|
{ // Third party images are inlined
|
||||||
test: /\.(png|jpg|gif)$/,
|
test: /\.(png|jpg|gif)$/,
|
||||||
exclude: /web\/static/,
|
include: /node_modules/,
|
||||||
type: "asset/inline",
|
type: "asset/inline",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user