Devil May Code...

Vergil's Blog

今天在写Laravel+Vue项目时,发现Laravel-mix发现对ES6的object spread操作符「...」不支持。升级Laravel-mix后未果。

后来搜索发现通过添加插件解决:

// package.json
"dependencies": {
  "babel-plugin-transform-object-rest-spread": "^6.23.0"
},
"babel": {
  "plugins": ["transform-object-rest-spread"]
}

已有 3 条评论 »

  1. In case you didn't realize, the word "conection" on your site is spelled incorrectly. I had similar issues on my website which hurt my credibility until someone pointed it out and I discovered some of the services like SpellHelper.com or SpellingCheck.com which help with these type of issues.

  2. It looks like you have a couple spelling errors on your website such as the word "conection". Check out a service like SpellAce.com to help. We've used it in the past and liked it.

  3. It looks like you've misspelled the word "conection" on your website. I thought you would like to know :). Silly mistakes can ruin your site's credibility. I've used a tool called SpellScan.com in the past to keep mistakes off of my website.

    -Kerri

添加新评论 »

在这里输入你的评论...

Powered by Typecho.