You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
714 B
JavaScript
30 lines
714 B
JavaScript
var webpack = require('webpack'),
|
|
path = require('path');
|
|
|
|
module.exports = require('./webpack.config.js');
|
|
|
|
module.exports.resolve = {
|
|
modules: [
|
|
path.resolve('./lib/'),
|
|
path.resolve('./src/common/'),
|
|
'node_modules'
|
|
]
|
|
};
|
|
|
|
module.exports.externals = [
|
|
"get-pixels",
|
|
"gl-matrix",
|
|
"lodash",
|
|
"ndarray",
|
|
"ndarray-linear-interpolate"
|
|
];
|
|
module.exports.output.libraryTarget = "umd";
|
|
module.exports.output.library = "Quagga";
|
|
module.exports.plugins = [
|
|
new webpack.DefinePlugin({
|
|
ENV: require(path.join(__dirname, './env/', process.env.BUILD_ENV))
|
|
})
|
|
];
|
|
module.exports.output.path = __dirname + '/lib';
|
|
module.exports.output.filename = 'quagga.js';
|