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:
parent
aaabed38a0
commit
716c0bf361
1 changed files with 11 additions and 0 deletions
|
|
@ -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`]: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue