Просмотр исходного кода

更换群二维码;gulp打包文件调优

zxlie 7 лет назад
Родитель
Сommit
50457c9ce4

+ 1 - 1
apps/json-format/index.css

@@ -41,7 +41,7 @@ body {
 }
 #jsonSource,.CodeMirror {
     height: calc(100% - 50px);
-    font-size: 10px;
+    /*font-size: 10px;*/
 }
 #errorMsg {
     color: #f00;

+ 1 - 1
apps/manifest.json

@@ -1,6 +1,6 @@
 {
   "name": "WEB前端助手(FeHelper)",
-  "version": "2018.11.0510",
+  "version": "2018.11.0612",
   "manifest_version": 2,
   "default_locale": "zh_CN",
   "description": "FE助手:包括JSON格式化、二维码生成与解码、信息编解码、代码压缩、美化、页面取色、Markdown与HTML互转、网页滚动截屏、正则表达式、时间转换工具、编码规范检测、页面性能检测、Ajax接口调试、密码生成器、JSON比对工具、网页编码设置、便签笔记",

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
apps/popup/index.html


+ 1 - 1
apps/popup/index.js

@@ -7,7 +7,7 @@ new Vue({
     data: {
         ajaxDebugger: '已开',
         canMeShow: {},
-        manifest:{}
+        manifest: {}
     },
 
     created: function () {

BIN
apps/static/screenshot/wx-qrcode-fehelper-group.png


+ 2 - 2
apps/sticky-notes/index.html

@@ -32,8 +32,8 @@
         </div>
 
         <script src="../static/vendor/jquery/jquery-3.3.1.min.js"></script>
-        <script src="../sticky-notes/date-utils.js"></script>
-        <script src="../sticky-notes/html5sticky.js"></script>
+        <script src="date-utils.js"></script>
+        <script src="html5sticky.js"></script>
         <script src="index.js"></script>
         <script src="../static/vendor/jszip/jszip.js"></script>
     </body>

+ 10 - 0
gulpfile.js

@@ -118,6 +118,16 @@ gulp.task('zip', () => {
         } else if (file.match(/\.js$/) && !/index\.js$/.test(file)) {
             included = shell.grep('-l', file.replace(/\.js$/, ''), './**/*.{html,js}').stdout;
         }
+
+        // 如果没有搜索到,再尝试下在js、css文件的当前目录下搜寻
+        if(!included.trim().length && /\.(js|css)$/.test(file)) {
+            let arr = file.split(/\//);
+            let filename = arr.splice(-1);
+            let dirname = arr.join('/');
+
+            included = shell.grep('-l', filename, (dirname || '.') +  '/*.{html,js,css}').stdout;
+        }
+
         return !included.trim().length;
     });
     fileList = fileList.filter(f => excludes.indexOf(f) === -1);

Некоторые файлы не были показаны из-за большого количества измененных файлов