vue项目根目录新增配置文件 .babelrc

{
  "presets": [
    "stage-2"
  ]
}

修复好 Syntax Error: Unexpected token 启动发现又报如下问题

Failed to compile with 9 errors  
Module build failed: Error: No PostCSS Config found in: D:\project\

根目录新建postcss.config.js

/**
 * Created by liweiliang 406320591@QQ.com on 2022/11/1 14:10.
 */
module.exports = {
    plugins: {
        autoprefixer: {browsers: 'last 5 version'}
    }
}

标签: none

评论已关闭