F:jeecmsjeecmsv9-adminVue>node builduild.js - building for production...Error processing file: static/css/app.d79d7e4222e14aa22beb1d61f3b4cfab.css (node:18376) UnhandledPromiseRejectionWarning: CssSyntaxError: F:jeecmsjeecmsv9-adminVuestaticcssapp.d79d7e4222e14aa22beb1d61f3b4cfab.css:1288:8: Unknown word at Input.error (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibinput.js:130:16) at Parser.unknownWord (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibparser.js:563:22) at Parser.decl (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibparser.js:235:16) at Parser.other (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibparser.js:133:18) at Parser.parse (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibparser.js:77:16) at parse (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibparse.js:17:12) at new LazyResult (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcssliblazy-result.js:60:16) at Processor.<anonymous> (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibprocessor.js:138:12) at Processor.process (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibprocessor.js:117:23) at Function.creator.process (F:jeecmsjeecmsv9-adminVue ode_modules\_postcss@7.0.17@postcsslibpostcss.js:148:43) at OptimizeCssAssetsPlugin.processCss (F:jeecmsjeecmsv9-adminVue ode_modules\_optimize-css-assets-webpack-plugin@3.2.1@optimize-css-assets-webpack-pluginindex.js:63:19) at Object.processor (F:jeecmsjeecmsv9-adminVue ode_modules\_optimize-css-assets-webpack-plugin@3.2.1@optimize-css-assets-webpack-pluginindex.js:29:23) at F:jeecmsjeecmsv9-adminVue ode_modules\_last-call-webpack-plugin@2.1.2@last-call-webpack-pluginindex.js:139:8 at arrayEach (F:jeecmsjeecmsv9-adminVue ode_modules\_lodash@4.17.15@lodash\_arrayEach.js:15:9) at forEach (F:jeecmsjeecmsv9-adminVue ode_modules\_lodash@4.17.15@lodashforEach.js:38:10) at LastCallWebpackPlugin.process (F:jeecmsjeecmsv9-adminVue ode_modules\_last-call-webpack-plugin@2.1.2@last-call-webpack-pluginindex.js:136:3) (node:18376) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:18376) [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.
1、暂时解决办法
webpack.prod.conf.js
//const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
解决办法,暂时注释掉
//const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
//new OptimizeCSSPlugin({
// cssProcessorOptions: config.build.productionSourceMap
//? { safe: true, map: { inline: false } }
// : { safe: true }
//}),