Commit e147c002 authored by rockyl's avatar rockyl

更新

parent a2ac0cb4
......@@ -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"
......
......@@ -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),
......
......@@ -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)
}
}
......
......@@ -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;
}
......
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