uglifycsssymfony2assticdump

编程

 [AsseticExceptionFilterException]

An error occurred while running:

"node" "C:kaifahtmlxxapp/Resources/node_modules/uglifycss/uglifycss" "C:UsersxxAppDataLocalTempass7BD3.tmp"

Error Output:

C:kaifahtmlxxappResources

ode_modulesuglifycssuglifycss:109

util.print(uglifycss.processFiles(params.files, params.options));

^

TypeError: undefined is not a function

at Object.<anonymous> (C:kaifahtmlxxappResources

ode_modulesuglifycssuglifycss:109:7)

at Module._compile (internal/modules/cjs/loader.js:1156:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)

at Module.load (internal/modules/cjs/loader.js:1000:32)

at Function.Module._load (internal/modules/cjs/loader.js:899:14)

at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)

at internal/main/run_main_module.js:18:47

然来是我们本地node升级了;util包的print方法好像已经废弃

就把util.print改成console.log

在app/Resources/node_modules/uglifycss/uglifycss 大概109行左右

if (nFiles) {

//util.print(uglifycss.processFiles(params.files, params.options)); //util.print在高版本的node中已经废弃了

console.log(uglifycss.processFiles(params.files, params.options));

// . usage

} else if (stdin.isTTY) {

以上是 uglifycsssymfony2assticdump 的全部内容, 来源链接: utcz.com/z/515993.html

回到顶部