Wrong writing
plugins: [
{removeAttrs: {attrs: "path:fill"}}
]
Correct writing
plugins: [
{
name: 'removeAttrs',
params: {
attrs: 'fill'
}
}
]
Demo: https://github.com/svg/svgo/blob/master/plugins/removeAttrs.js
Read More:
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] Vue calls style loader error: Module build failed: CssSyntaxError
- vue-cli: Syntax Error: Thread Loader [How to Solve]
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- Error: Duplicate plugin/preset detected [How to Solve]
- [Solved] Uniapp project use vant icon Error: (module build failed from./node_modules/postcss loader/SRC/index)
- Vue installs sass loader directly, and node sass reports an error
- [Solved] Syntax Error: Error: Cannot find module ‘cache-loader‘
- [Solved] ERROR Error: Cannot find module ‘vue-loader-v16/package.json‘
- [Solved] Error:Plugin/Preset files are not allowed to export objects, only functions
- [Solved] Vue Install loader Error: Syntax Error: Error: Cannot find module ‘less‘
- [Solved] vue run serve Error: ValidationError: Progress Plugin Invalid Options
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘
- [Solved] vueCli 4.x Upgrade to 5.x Error: Progress Plugin Invalid Options
- [Solved] Error: postcss plugin autoprefixer requires postcss 8 error report problem repair
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- [Solved] arco design vite-plugin-style-import Load menu-item error: Internal server error…