785a63e0a8
* Updated lock-file to fix https://github.com/npm/cli/issues/4859. * Updated integration-tests to webpack 5 to fix https://github.com/webpack/webpack/issues/14532. * Added `mode` to webpack-integration-tests to avoid the warning `The 'mode' option has not been set...`. * Replaced outdated `grunt-bg-shell`-package to get rid of coffee-script warnings
22 lines
435 B
JavaScript
22 lines
435 B
JavaScript
const fs = require('fs');
|
|
|
|
const testFiles = fs.readdirSync('src');
|
|
const entryPoints = {};
|
|
testFiles
|
|
.filter(file => file.match(/-test.js$/))
|
|
.forEach(file => {
|
|
entryPoints[file] = `./src/${file}`;
|
|
});
|
|
|
|
module.exports = {
|
|
entry: entryPoints,
|
|
mode: 'production',
|
|
output: {
|
|
filename: '[name]',
|
|
path: __dirname + '/dist'
|
|
},
|
|
module: {
|
|
rules: [{ test: /\.handlebars$/, loader: 'handlebars-loader' }]
|
|
}
|
|
};
|