Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game-template-egret
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
劳工
game-template-egret
Commits
e147c002
Commit
e147c002
authored
Sep 28, 2018
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
a2ac0cb4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
manifest.json
manifest.json
+1
-3
config.ts
scripts/config.ts
+3
-3
result-notification-plugin.ts
scripts/result-notification-plugin.ts
+0
-1
rollup-compile-plugin.ts
scripts/rollup-compile-plugin.ts
+2
-2
No files found.
manifest.json
View file @
e147c002
...
...
@@ -6,9 +6,7 @@
"libs/modules/assetsmanager/assetsmanager.js"
,
"libs/modules/tween/tween.js"
,
"libs/modules/game/game.js"
,
"libs/modules/promise/promise.js"
,
"libs/modules/md5/md5.js"
,
"libs/modules/physics/physics.js"
"libs/modules/promise/promise.js"
],
"game"
:
[
"bin-debug/bundle.js"
...
...
scripts/config.ts
View file @
e147c002
...
...
@@ -35,7 +35,8 @@ const config: ResourceManagerConfig = {
new
RollupCompilePlugin
({
publishPolicy
:
'release'
,
libraryType
:
'release'
,
defines
:
{
DEBUG
:
false
,
RELEASE
:
true
}
defines
:
{
DEBUG
:
false
,
RELEASE
:
true
},
//generateSourceMap: true,
}),
new
ExmlPlugin
(
'commonjs'
),
// 非 EUI 项目关闭此设置
new
UglifyPlugin
([{
...
...
@@ -47,9 +48,8 @@ const config: ResourceManagerConfig = {
sources
:
[
"libs/modules/**/*.min.js"
,
"resource/default.thm.min.js"
,
"bundle.min.js"
,
],
target
:
"
all
.js"
target
:
"
vendor
.js"
}
]),
new
ResultNotificationPlugin
(
'Publish'
,
version
),
...
...
scripts/result-notification-plugin.ts
View file @
e147c002
...
...
@@ -20,7 +20,6 @@ export class ResultNotificationPlugin implements plugins.Command {
});
if
(
this
.
version
){
console
.
log
(
this
.
operate
,
' complete'
,
this
.
version
);
console
.
log
(
'version:'
,
this
.
version
)
}
}
...
...
scripts/rollup-compile-plugin.ts
View file @
e147c002
...
...
@@ -22,7 +22,7 @@ export class RollupCompilePlugin implements plugins.Command {
}
async
onFinish
(
commandContext
:
plugins
.
CommandContext
)
{
const
{
publishPolicy
,
libraryType
,
defines
}
=
this
.
options
;
const
{
publishPolicy
,
libraryType
,
defines
,
generateSourceMap
}
=
this
.
options
;
const
debugMode
=
publishPolicy
===
'debug'
;
...
...
@@ -41,7 +41,7 @@ export class RollupCompilePlugin implements plugins.Command {
format
:
'cjs'
,
};
if
(
debugMode
)
{
if
(
debugMode
||
generateSourceMap
)
{
outputConfig
.
sourcemap
=
true
;
}
...
...
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