mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-01 07:24:30 +08:00
插件结构改造
This commit is contained in:
1 parent
8ab10d5612
commit
023d913ea7
53 files changed
+9640
-9816
No files matched your search
+3
-1
@@ -98,7 +98,9 @@ import { exec } from 'child_process';
|
||||
// 3. 压缩js插件
|
||||
try {
|
||||
exec(
|
||||
'babel ./dist/project/plugin --out-file ./dist/project/plugin.min.js'
|
||||
`babel ${data.main.plugin
|
||||
.map(v => `./dist/project/plugin/${v}.js`)
|
||||
.join(' ')} --out-file ./dist/project/plugin.min.js`
|
||||
).on('close', async () => {
|
||||
const main = await fs.readFile('./dist/main.js', 'utf-8');
|
||||
await fs.writeFile(
|
||||
|
||||
Reference in new issue
Block a user