zoukankan      html  css  js  c++  java
  • jeecmsv9-adminVue 打包出错

    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 }
    //}),

  • 相关阅读:
    iOS coreData
    具体解释首页被K后SEOer必做的三大排除方法!
    linux VIM基本命令
    0046算法笔记——【随机化算法】舍伍德随机化思想解决跳跃表问题
    android新浪分享实例
    DIV固定在页面某个位置,不随鼠标滚动而滚动
    迷宫问题算法分析
    ExtJs选择器
    第二篇Activity:2、任务和返回堆栈(Tasks and Back Stack)之基本介绍
    面试题,将数字依次按三角形输出,每行一个数字
  • 原文地址:https://www.cnblogs.com/Jeely/p/11223849.html
Copyright © 2011-2022 走看看