Files
handlebars.js/tests/integration/webpack-test/webpack.config.js
T
Jakob Linskeseder e534a911f3 Upgrade prettier to v2
Prettier v2 has the following breaking changes:
* enforces spaces between `function` and params
* enforces trailing commas by default
2022-10-29 21:49:15 +02:00

22 lines
442 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' }],
},
};