chore: webpack 5

This commit is contained in:
cha0s 2023-11-30 20:41:07 -06:00
parent dd6422e8da
commit 77c3e21208
2 changed files with 17 additions and 21 deletions

View File

@ -1,21 +0,0 @@
/* eslint-disable import/no-extraneous-dependencies */
const copy = require('@neutrinojs/copy');
module.exports = async (flecks) => {
// eslint-disable-next-line global-require
const config = await require('@flecks/web/server/build/web.neutrinorc')(flecks);
config.use.push(
copy({
copyUnmodified: true,
patterns: [
{
from: 'icon.png',
to: 'web/assets/icon.png',
},
],
}),
);
return config;
};

View File

@ -0,0 +1,17 @@
const {copy} = require('@flecks/core/server');
const configFn = require('@flecks/web/server/build/web.webpack.config');
module.exports = async (env, argv, flecks) => {
const config = await configFn(env, argv, flecks);
config.plugins.push(
copy({
patterns: [
{
from: 'icon.png',
to: 'assets/icon.png',
},
],
}),
);
return config;
};