mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix polyfill link generation
This commit is contained in:
1 parent
c6485c536e
commit
545190d5fe
3 files changed
+5
-5
No files matched your search
@@ -54,7 +54,7 @@ async function runWebpack({
|
||||
}
|
||||
if (argv.options.detail) console.log(stats.toString());
|
||||
if (!watch && (!stats || stats.hasErrors())) process.exitCode = 1;
|
||||
resolve();
|
||||
resolve(null);
|
||||
}
|
||||
if (watch) compiler.watch({}, compilerCallback);
|
||||
else compiler.run(compilerCallback);
|
||||
@@ -77,7 +77,7 @@ async function runGulp() {
|
||||
gulp.on('stop', ({ uid, name }) => {
|
||||
log(chalk.green('Finished: %s'), chalk.reset(name));
|
||||
taskList[uid] = false;
|
||||
if (Object.values(taskList).filter((b) => b).length === 0) resolve();
|
||||
if (Object.values(taskList).filter((b) => b).length === 0) resolve(null);
|
||||
});
|
||||
gulpTasks.default();
|
||||
});
|
||||
@@ -87,7 +87,7 @@ async function main() {
|
||||
const dir = process.cwd();
|
||||
process.chdir(root());
|
||||
await runGulp();
|
||||
await runWebpack(argv.options);
|
||||
await runWebpack(argv.options as any);
|
||||
if (fs.existsSync('public/hydro.js')) {
|
||||
fs.copyFileSync('public/hydro.js', `public/hydro-${pkg.version}.js`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user