Commit 489a946078e22301140a90cc8c255061e5d72e98

Authored by 刘汉宸
1 parent 116d2ab7

chore: 修改打包流程

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
webpack/release.js
@@ -3,7 +3,7 @@ const ora = require('ora'); @@ -3,7 +3,7 @@ const ora = require('ora');
3 const path = require('path'); 3 const path = require('path');
4 const { exec } = require('child_process'); 4 const { exec } = require('child_process');
5 5
6 -const outputPath = path.resolve(__dirname, '../release'); 6 +const outputPath = path.resolve(__dirname, '../lib');
7 7
8 // 删除文件夹 8 // 删除文件夹
9 const delPath = path => { 9 const delPath = path => {
@@ -36,7 +36,7 @@ if (fs.existsSync(outputPath)) { @@ -36,7 +36,7 @@ if (fs.existsSync(outputPath)) {
36 delPath(outputPath); 36 delPath(outputPath);
37 } 37 }
38 38
39 -const cmd = 'vue-cli-service build --target lib --name zee --dest release packages/index.js'; 39 +const cmd = 'vue-cli-service build --target lib --name zee --dest lib packages/index.js';
40 40
41 const spinner = ora('编译中...').start(); 41 const spinner = ora('编译中...').start();
42 42