码迷,mamicode.com
首页 > 其他好文 > 详细

jeecmsv9-adminVue 打包出错

时间:2019-07-22 10:20:37      阅读:642      评论:0      收藏:0      [点我收藏+]

标签:app   erro   span   jee   ssas   NPU   origin   webp   error   

F:\jeecms\jeecmsv9-adminVue>node build\build.js
- building for production...Error processing file: static/css/app.d79d7e4222e14aa22beb1d61f3b4cfab.css
(node:18376) UnhandledPromiseRejectionWarning: CssSyntaxError: F:\jeecms\jeecmsv9-adminVue\static\css\app.d79d7e4222e14aa22beb1d61f3b4cfab.css:1288:8: Unknown word
    at Input.error (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\input.js:130:16)
    at Parser.unknownWord (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parser.js:563:22)
    at Parser.decl (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parser.js:235:16)
    at Parser.other (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parser.js:133:18)
    at Parser.parse (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parser.js:77:16)
    at parse (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parse.js:17:12)
    at new LazyResult (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\lazy-result.js:60:16)
    at Processor.<anonymous> (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\processor.js:138:12)
    at Processor.process (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\processor.js:117:23)
    at Function.creator.process (F:\jeecms\jeecmsv9-adminVue\node_modules\_postcss@7.0.17@postcss\lib\postcss.js:148:43)
    at OptimizeCssAssetsPlugin.processCss (F:\jeecms\jeecmsv9-adminVue\node_modules\_optimize-css-assets-webpack-plugin@3.2.1@optimize-css-assets-webpack-plugin\index.js:63:19)
    at Object.processor (F:\jeecms\jeecmsv9-adminVue\node_modules\_optimize-css-assets-webpack-plugin@3.2.1@optimize-css-assets-webpack-plugin\index.js:29:23)
    at F:\jeecms\jeecmsv9-adminVue\node_modules\_last-call-webpack-plugin@2.1.2@last-call-webpack-plugin\index.js:139:8
    at arrayEach (F:\jeecms\jeecmsv9-adminVue\node_modules\_lodash@4.17.15@lodash\_arrayEach.js:15:9)
    at forEach (F:\jeecms\jeecmsv9-adminVue\node_modules\_lodash@4.17.15@lodash\forEach.js:38:10)
    at LastCallWebpackPlugin.process (F:\jeecms\jeecmsv9-adminVue\node_modules\_last-call-webpack-plugin@2.1.2@last-call-webpack-plugin\index.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 }
//}),

 

jeecmsv9-adminVue 打包出错

标签:app   erro   span   jee   ssas   NPU   origin   webp   error   

原文地址:https://www.cnblogs.com/Jeely/p/11223849.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!