New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to disable optimization. #15
Conversation
src/index.js
Outdated
@@ -16,7 +16,7 @@ let ignoreRegex; | |||
|
|||
export default ({ types: t }) => ({ | |||
visitor: { | |||
ImportDeclaration(path, state) { | |||
ImportDeclaration (path, state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave this part as-is to align with the Airbnb Styleguide
src/index.js
Outdated
const optimizedSvgSource = optimize(svgSource, state.opts.svgo); | ||
const escapeSvgSource = escapeBraces(optimizedSvgSource); | ||
const rawSource = readFileSync(svgPath, 'utf8'); | ||
let optimizedSource = state.opts.svgo === false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like these conditions might be backwards?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my 😅
Should be good to go now @kesne |
LGTM! This is awesome, thank you so mcuh! |
closes #10
Disable with