我的项目里svgo.yml文件内容是:
# replace default config
# 基于svgo对svg文件进行压缩:https://panjiachen.github.io/vue-element-admin-site/zh/feature/script/svgo.html
# multipass: true
# full: true
plugins:
# - name
#
# or:
# - name: false
# - name: true
#
# or:
# - name:
# param1: 1
# param2: 2
- removeAttrs:
attrs:
- 'fill'
- 'fill-rule'
然后运行的时候一直有警告提示:
WARNING Compiled with 1 warning 下午2:47:39
warning in ./src/icons/svgo.yml
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
> # replace default config
| # 基于svgo对svg文件进行压缩:https://panjiachen.github.io/vue-element-admin-site/zh/feature/script/svgo.html
| # multipass: true
@ ./src sync ^\.\/.*$
@ ./src/utils/route.js
@ ./src/store/modules/menu.js
@ ./src/store/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.2.88:5001/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
请问这是怎么回事啊?如何才可以把警告代码提示改正?
还有这个文件可以删除吗?有什么作用?干啥用的?