You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
517 B
27 lines
517 B
6 years ago
|
const path = require('path');
|
||
|
|
||
|
const genConfig = ({
|
||
|
entry, filename, library, libraryTarget,
|
||
|
}) => ({
|
||
|
mode: 'development',
|
||
|
entry,
|
||
|
output: {
|
||
|
filename,
|
||
|
library,
|
||
|
libraryTarget,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
module.exports = [
|
||
|
genConfig({
|
||
|
entry: path.resolve(__dirname, '..', 'src', 'index.js'),
|
||
|
filename: 'tesseract.dev.js',
|
||
|
library: 'Tesseract',
|
||
|
libraryTarget: 'umd',
|
||
|
}),
|
||
|
genConfig({
|
||
|
entry: path.resolve(__dirname, '..', 'src', 'browser', 'worker.js'),
|
||
|
filename: 'worker.dev.js',
|
||
|
}),
|
||
|
];
|