flecks/packages/server/build/fleck.webpack.config.js
2024-02-05 17:56:40 -06:00

20 lines
462 B
JavaScript

const {copy} = require('@flecks/build/src/server');
const configFn = require('@flecks/fleck/build/fleck.webpack.config');
module.exports = async (env, argv, flecks) => {
const config = await configFn(env, argv, flecks);
delete config.entry.entry;
config.plugins.push(
copy({
patterns: [
{
from: 'src/entry.js',
to: 'entry.js',
info: { minimized: true },
},
],
}),
);
return config;
};