svg-inline-loader icon indicating copy to clipboard operation
svg-inline-loader copied to clipboard

webpack 2 idPrefix passed by options not working

Open fortranlee opened this issue 8 years ago • 0 comments
trafficstars

webpack 2 idPrefix passed by options generates the same ids among multiple svgs:

// passed by options

// ...

{
    test: /.svg$/,
    use: [
        {
            loader: 'svg-inline-loader',
            options: {
                idPrefix: '[sha512:hash:hex:5]-'
            }
        }
    ]
}

// ...

But passed by query works as expected

// passed by query

// ...

{
    test: /.svg$/,
    use: [
        {
            loader: 'svg-inline-loader?idPrefix=[sha512:hash:hex:5]-'
        }
    ]
}

// ...

fortranlee avatar Mar 14 '17 01:03 fortranlee