Commit 29ed7445 authored by liujiangnan's avatar liujiangnan

修改打包功能

parent 9468e667
......@@ -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) => {
......
{
"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": {
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment