Css npm脚本中的Autoprefixer show TypeError:模式必须是字符串或字符串数组
当我运行npm run prefix:css时,它会显示 TypeError:模式必须是字符串或字符串数组 这是我的packge.json文件 错误是-Css npm脚本中的Autoprefixer show TypeError:模式必须是字符串或字符串数组,css,npm,sass,Css,Npm,Sass,当我运行npm run prefix:css时,它会显示 TypeError:模式必须是字符串或字符串数组 这是我的packge.json文件 错误是- 如何解决它?前缀:css:postsss-使用autoprefixer-b\last 10 versions\css/style.comp.css-o css/style.prefix.css 我认为您需要使用字符串来尝试此…尝试以下操作: "prefix:css": "postcss --use autoprefixer -b 'last
如何解决它?前缀:css:postsss-使用autoprefixer-b\last 10 versions\css/style.comp.css-o css/style.prefix.css 我认为您需要使用字符串来尝试此…尝试以下操作:
"prefix:css": "postcss --use autoprefixer -b 'last versions'
css/style.concat.css -o css/style.prefix.css"
只需拆下10,即可使用。必须使用双引号,而不是单引号。这甚至包括试图逃避单引号->行不通。这让我抓狂了好几个小时。
"prefix:css": "postcss --use autoprefixer -b 'last versions'
css/style.concat.css -o css/style.prefix.css"