From 29ed74453cc2ca8e77c32a35e357ce52f809f767 Mon Sep 17 00:00:00 2001
From: liujiangnan <695541723@qq.com>
Date: Fri, 6 Sep 2019 17:26:55 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E5=8A=9F?=
 =?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 bin/publish.js                           |  4 ++--
 package.json                             | 11 +++--------
 src/assets/libs/audio-recorder/worker.js |  2 +-
 3 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/bin/publish.js b/bin/publish.js
index 4eb6931..9c391c7 100644
--- a/bin/publish.js
+++ b/bin/publish.js
@@ -49,9 +49,9 @@ const runSpawn = async function (){
     let ls; 
     if(sysType==="Windows_NT"){
       //ng build --prod --build--optimizer --base-href /ng-one/
-      ls = spawn("cmd.exe", ['/c', 'ng', 'build', '--prod', '--build--optimizer', '--base-href', `/${pkg.name}/`] );
+      ls = spawn("cmd.exe", ['/c', 'ng', 'build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/'] );
     }else{
-      ls = spawn("ng", ['build', '--prod', '--build--optimizer', '--base-href', `/${pkg.name}/`] );
+      ls = spawn("ng", ['build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/'] );
     }
 
     ls.stdout.on('data', (data) => {
diff --git a/package.json b/package.json
index f9a70b9..4eba372 100644
--- a/package.json
+++ b/package.json
@@ -1,14 +1,9 @@
 {
   "name": "ng-template-generator",
   "version": "0.0.1",
-  "scripts": {
-    "ng": "ng",
-    "start": "ng serve",
-    "build": "ng build --prod --build--optimizer --base-href /ng-one/",
-    "publish": "node ./bin/publish.js",
-    "test": "ng test",
-    "lint": "ng lint",
-    "e2e": "ng e2e"
+  "scripts": { 
+    "start": "ng serve", 
+    "publish": "node ./bin/publish.js" 
   },
   "private": true,
   "dependencies": {
diff --git a/src/assets/libs/audio-recorder/worker.js b/src/assets/libs/audio-recorder/worker.js
index 653f959..41e7c93 100755
--- a/src/assets/libs/audio-recorder/worker.js
+++ b/src/assets/libs/audio-recorder/worker.js
@@ -36,7 +36,7 @@
   }
 
 
-  importScripts('/assets/libs/audio-recorder/lame.min.js');
+  importScripts('assets/libs/audio-recorder/lame.min.js');
 
   var mp3Encoder, maxSamples = 1152, samplesMono, lame, config, dataBuffer;
 
-- 
2.21.0