building for production...Error
假如你vue项目打包遇到了此报错,毋庸置疑的肯定是css环节,出问题了。我项目中使用的是stylus预编译器,使用了花括号,少了个括号。注意!!!
错误示范building for production...Error processing file: static/css/app.8dea3c09b45c4f3bb5b1a322334faa5f.css
(node:12456) UnhandledPromiseRejectionWarning: CssSyntaxError: F:\Richsmiley\static\css\app.8dea3c09b45c4f3bb5b1a322334faa5f.css:10032:3: Unknown word
(node:12456) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a pr
omise which was not handled with .catch(). (rejection id: 2)
(node:12456) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non
-zero exit code.
当时写的时候也没报红,邪门。