Commit 29ed7445 authored by liujiangnan's avatar liujiangnan

修改打包功能

parent 9468e667
...@@ -49,9 +49,9 @@ const runSpawn = async function (){ ...@@ -49,9 +49,9 @@ const runSpawn = async function (){
let ls; let ls;
if(sysType==="Windows_NT"){ if(sysType==="Windows_NT"){
//ng build --prod --build--optimizer --base-href /ng-one/ //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{ }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) => { ls.stdout.on('data', (data) => {
......
{ {
"name": "ng-template-generator", "name": "ng-template-generator",
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"ng": "ng", "start": "ng serve",
"start": "ng serve", "publish": "node ./bin/publish.js"
"build": "ng build --prod --build--optimizer --base-href /ng-one/",
"publish": "node ./bin/publish.js",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
......
...@@ -36,7 +36,7 @@ ...@@ -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; 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