Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
simonvbrae committed Sep 19, 2024
1 parent e10986a commit 9738a33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (args.h || args.help || args._.length > 1) {
const settingsFile = args.s || path.join(__dirname, '..', 'settings.json');
const outputFile = 'queries.json';
compileSettings(queryDir, settingsFile, outputFile);

// Compile Web version
const destinationPath = args.d || 'build';
const mode = args.m || 'production';
Expand All @@ -62,10 +62,10 @@ if (args.h || args.help || args._.length > 1) {

// Override the baseURL in the webpack config
webpackConfig.baseURL.replace = baseURL;

// Override the buildContext in the webpack config
webpackConfig.buildContext.dir = destinationPath;

for (const entry of webpackConfig) {
entry.mode = mode;
if (entry.output) {
Expand All @@ -81,12 +81,12 @@ if (args.h || args.help || args._.length > 1) {
}
process.exit(1);
}

console.error(stats.toString({ colors: true }));
if (stats.hasErrors()) {
process.exit(1);
}

fs.unlinkSync('.tmp-comunica-engine.js');
});

Expand Down

0 comments on commit 9738a33

Please sign in to comment.