多线程(cluster)

This commit is contained in:
masnn committed 2020-06-08 23:21:40 +08:00
1 parent 1c8b62a6d9
commit 45f1184d68
7 files changed
+169 -73

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ async function build(type) {
console.error(`Module pack failed: ${m}`);
}
}
const f = fs.readFileSync(root('.build/development.js')).toString();
const f = fs.readFileSync(root('.build/app.js')).toString();
const installer = fs.readFileSync(root('tool/install.js')).toString();
const file = `global._hydroModule=${JSON.stringify(j)};${f}`;
fs.writeFileSync(root('.build/full.js'), file);
+1 -1
View File
@@ -22,7 +22,7 @@ const build = async (type) => {
const config = {
mode: type,
entry: {
development: root('hydro/development.js'),
app: root('hydro/loader.js'),
},
output: {
filename: '[name].js',