fec.config: Exclude pkg directory during build time

After running `make cockpit/devel`, the generated files do not pass `npm run build`, outputing failures and making dev console and output of `npm run build` cluttered with errors.

This excludes `/pkg` folder during build time, removing the errors.
This commit is contained in:
regexowl 2025-03-28 08:56:33 +01:00 committed by Klara Simickova
parent aaabed38a0
commit 716c0bf361

View file

@ -107,6 +107,17 @@ module.exports = {
'os-release': false,
},
},
module: {
rules: [
{
// running `make` on cockpit plugin creates './pkg'
// directory, the generated files do not pass
// `npm run build` outputing failures
// this ensures the directory is exluded during build time
exclude: ',/pkg',
},
],
},
routes: {
...(process.env.CONFIG_PORT && {
[`${process.env.BETA ? '/beta' : ''}/config`]: {