diff --git a/README.md b/README.md index baecd692f..50261cf41 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,85 @@ const config = await loadConfig(configFile, cwd); | [removeScriptElement](https://github.com/svg/svgo/blob/main/plugins/removeScriptElement.js) | remove ` + + +``` + +
A more complex test with `optimize` + +```html + + + + + + + + + + + +``` + +
+ +Same example at: https://jsfiddle.net/4kocyx9t/6/ + +If non-module browser js file is needed, you can use bundler tools like [webpack](https://webpack.js.org/configuration/output/#type-umd) or [rollup](https://rollupjs.org/guide/en/#outputformat) to compile the code to [UMD (Universal Module Definition)](https://github.com/umdjs/umd) format. + ## Other Ways to Use SVGO - as a web app – [SVGOMG](https://jakearchibald.github.io/svgomg/)