about summary refs log tree commit diff
path: root/config/webpack/rules/tesseract.js
blob: de647c8d1041b4254f9268d0d4c5b8f89662402e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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]',
    },
  },
};