-
-
Notifications
You must be signed in to change notification settings - Fork 430
Open
Description
Hello!
When installing a package locally (npm link @package-name), files are not processed by SVGO.
We use custom plugin to console list of files
export default {
svgoConfig: {
plugins: [
{
name: 'preset-default',
},
{
name: 'removeAttrs',
params: { attrs: '(fill|stroke|stroke-width)' },
},
{
name: 'addAttributesToSVGElement',
params: {
attributes: [{ fill: 'none' }, { stroke: 'none' }],
},
},
{
name: 'customPlugin',
params: {
paramName: 'paramValue',
},
fn: (ast, params, info) => {
console.log(info)
},
},
],
},
}
console.log(info)
— displays only files that are in the src folder of the project
But if you install the package directly via npm (npm install @package-name) everything will work.
Metadata
Metadata
Assignees
Labels
No labels