flecks/packages/create-app/build/fleck.webpack.config.js

18 lines
476 B
JavaScript
Raw Normal View History

2024-01-22 09:16:07 -06:00
const {copy, executable} = require('@flecks/build/server');
2023-11-30 21:41:42 -06:00
// eslint-disable-next-line import/no-extraneous-dependencies
2024-01-16 00:28:20 -06:00
const configFn = require('@flecks/fleck/build/fleck.webpack.config');
2023-11-30 21:41:42 -06:00
module.exports = async (env, argv, flecks) => {
const config = await configFn(env, argv, flecks);
2024-01-22 09:16:07 -06:00
config.plugins.push(executable());
2023-11-30 21:41:42 -06:00
config.plugins.push(copy({
patterns: [
{
from: 'template',
to: 'template',
},
],
}));
return config;
};