Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_10
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
dfzx_10
Commits
29ed7445
Commit
29ed7445
authored
Sep 06, 2019
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改打包功能
parent
9468e667
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
+6
-11
publish.js
bin/publish.js
+2
-2
package.json
package.json
+3
-8
worker.js
src/assets/libs/audio-recorder/worker.js
+1
-1
No files found.
bin/publish.js
View file @
29ed7445
...
...
@@ -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
)
=>
{
...
...
package.json
View file @
29ed7445
{
"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"
:
{
...
...
src/assets/libs/audio-recorder/worker.js
View file @
29ed7445
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment