Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Direct yaml files load via require() is deprecated! Use safeLoad() instead. #245

@tommaton

Description

@tommaton

I'm getting the following error when running my grunt task

Running "svgmin:dist" (svgmin) task
Direct yaml files load via require() is deprecated! Use safeLoad() instead.
Total saved: 0 B

This is my grunt setup:

svgmin: {
    options: {
        plugins: [
            { removeViewBox: false },
            { removeUselessStrokeAndFill: false }
        ]
    },
    dist: {                     // Target
        files: [{               // Dictionary of files
            expand: true,       // Enable dynamic expansion.
            cwd: './assets/images',     // Src matches are relative to this path.
            src: ['/*.svg'],  // Actual pattern(s) to match.
            dest: './assets/images/min'      // Destination path prefix.
        }]
    }
}

If you need any more info please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions