crabatool 1.0.462 → 1.0.463

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.462",
3
+ "version": "1.0.463",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "mergeinitjs": "node ./test/test.js -mergeinitjs",
14
14
  "export": "node ./test/test.js -exportgspx -webPath F:/Beefun/srcs",
15
15
  "checkjs": "node ./test/test.js -checkjs",
16
- "mergeFiles": "node ./test/test.js -mergeFiles -modName shell -webPath F:/shell-gerrit/web/src/main/resources/static/shell/ -targetPath F:/shell-gerrit/web/src/main/resources/static/shell/ -inNames skins/craba.min.css,skins/blueSky/skin.css,skins/shell.css,pages/RetailHome.gspx,pages/RetailHome.js,basics/Company.gspx,basics/Company.js,basics/PicUploadForm.gspx,basics/PicUploadForm.js,js/innerNotice.js,Main.gspx,Main.js,js/init.js,js/timingCollector.js,js/help.plug.js -outName F:/shell-gerrit/web/src/main/resources/static/shell/shell.res.js",
16
+ "mergeFiles": "node ./test/test.js -mergeFiles -modName shell -webPath F:/shell-gerrit/web/src/main/resources/static/shell/ -targetPath F:/shell-gerrit/web/src/main/resources/static/shell/ -inNames skins/craba.min.css,skins/blueSky/skin.css,skins/shell.css,pages/RetailHome.gspx,pages/RetailHome.js,basics/Company.gspx,basics/Company.js,basics/PicUploadForm.gspx,basics/PicUploadForm.js,js/innerNotice.js,Main.gspx,Main.js,js/init.js,js/timingCollector.js,js/help.plug.js -outName F:/shell-gerrit/web/src/main/resources/static/shell/shell.res.js -clearCache true",
17
17
  "mergeJxcFiles": "node ./test/test.js -mergeFiles -modName jxc -webPath F:/jxc/jxc-web/src/main/resources/static/jxc/ -targetPath F:/jxc/jxc-web/src/main/resources/static/jxc/ -inNames skins/blueSky/skin.css,js/wpsSettings.js,baseinfo/js/qiniu.min.js,baseinfo/js/baseinfo.constant.js,baseinfo/js/grid.ext.js,finance/js/finance.constant.js,baseinfo/js/lockScreen.js -initJs F:/jxc/jxc-web/src/main/resources/static/jxc/js/init.js",
18
18
  "mergeSaleFiles": "node ./test/test.js -mergeFiles -modName sale -webPath F:/sale/web/src/main/resources/static/sale/ -targetPath F:/sale/web/src/main/resources/static/sale/ -inNames skins/style/ColorSelectCss.css,skins/blueSky/skin.css,js/jquery.min.js,analysiscloud/js/wpsSettings.js,shopsale/js/payway.js,shopsale/js/billposter.js,eshoporder/eshopsaleorder/RetailHomeData.gspx,eshoporder/eshopsaleorder/RetailHomeData.js -initJs F:/sale/web/src/main/resources/static/sale/js/init.js",
19
19
  "checkiconfont": "node ./test/test.js -checkiconfont -webPath F:/crabaevery/www -modName crabaevery -reportHost http://127.0.0.1:9998 -ignoreFiles biconfont/iconfont.js,iconfont/iconfont.js -cssFiles skins/retail/skin.css",
package/tool/compress.js CHANGED
@@ -269,6 +269,7 @@ function compressCss(inNames, targetCss) {
269
269
 
270
270
  console.log('compress完成', inNames, targetCss);
271
271
  console.log('\r\n');
272
+ //console.log(content);
272
273
  return content;
273
274
  }
274
275
 
@@ -241,16 +241,18 @@ function compressFile(filePath, options, filePath2, stats) {
241
241
  // 压缩js或css文件
242
242
  if (!options.ignoreCompress) {
243
243
  utils.debug("压缩文件:" + filePath);
244
- content = utils.toUtf8(content);
245
244
  if (options.ext == '.js') {
245
+ content = utils.toUtf8(content);
246
246
  content = UglifyJS.minify(content, compressOptions).code;
247
247
  } else {
248
+ if (content.includes('.name.stop')) {
249
+ console.log(content);
250
+ }
248
251
  content = UglifyCss.processString(content, {
249
252
  maxLineLen: 1000,
250
253
  expandVars: false
251
254
  });
252
255
  }
253
-
254
256
  copyByteToCache(filePath, content, stats, options);
255
257
  }
256
258
  }