Ошибка в модуле ttf2woff2 , но выполняется таск который только сжимает js. Может кто сталкивался ? Или хотябы подскажите где искать проблему.
Ошибка
F:\nikoland\mindbox\Mindbox\node_modules\ttf2woff2\jssrc\ttf2woff2.js:1
(function (exports, require, module, __filename, __dirname) { var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](
Error
at new JS_Parse_Error (eval at <anonymous> (F:\nikoland\mindbox\Mindbox\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1534:18)
at js_error (eval at <anonymous> (F:\nikoland\mindbox\Mindbox\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1542:11)
at parse_error (eval at <anonymous> (F:\nikoland\mindbox\Mindbox\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1667:9)
at Object.next_token [as input] (eval at <anonymous> (F:\nikoland\mindbox\Mindbox\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1946:9)
at next (eval at <anonymous> (F:\nikoland\mindbox\Mindbox\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2075:25)
at Object.parse (eval at <anonymous> (F:\nikoland\mindbox\Mindbox\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2061:15)
at F:\nikoland\mindbox\Mindbox\node_modules\uglify-js\tools\node.js:71:33
at Array.forEach (native)
at Object.exports.minify (F:\nikoland\mindbox\Mindbox\node_modules\uglify-js\tools\node.js:66:15)
at F:\nikoland\mindbox\Mindbox\node_modules\gulp-uglify\minifier.js:65:22
at trycatch (F:\nikoland\mindbox\Mindbox\node_modules\gulp-uglify\minifier.js:15:12)
at DestroyableTransform.minify [as _transform] (F:\nikoland\mindbox\Mindbox\node_modules\gulp-uglify\minifier.js:64:19)
at DestroyableTransform.Transform._read (F:\nikoland\mindbox\Mindbox\node_modules\readable-stream\lib\_stream_transform.js:159:10)
at DestroyableTransform.Transform._write (F:\nikoland\mindbox\Mindbox\node_modules\readable-stream\lib\_stream_transform.js:147:83)
at doWrite (F:\nikoland\mindbox\Mindbox\node_modules\readable-stream\lib\_stream_writable.js:347:64)
at writeOrBuffer (F:\nikoland\mindbox\Mindbox\node_modules\readable-stream\lib\_stream_writable.js:336:5)
Таск
gulp.task('optimize', ['inject'], function () {
var assets = $.useref.assets({searchPath: ['app', 'app/scripts', 'app/css']});
log('Optimize the javascript, css, html');
return gulp.src(config.allhtml)
.pipe(assets)
.pipe($.if('*.js', $.uglify() ))
.pipe($.if('*.css', $.cleanCSS()))
.pipe(assets.restore())
.pipe($.useref())
.pipe(gulp.dest(config.dist + '_html'));
});
Айфон мало держит заряд, разбираемся с проблемой вместе с AppLab
Перевод документов на английский язык: Важность и ключевые аспекты