meetyou-url-loader

    1.0.5 • Public • Published

    meetyou-url-loader

    npm install meetyou-url-loader --save

    github

    https://github.com/linweiwei123/meetyou-url-loader

    Example

        {
          test: /\.(jpg|png|webp)$/,
          exclude: /(node_modules)/,
          use: [{
            loader: 'meetyou-url-loader',
            options: {
              name: '[name].[hash].[ext]',
              limit: 10,
              paramFlag:'x-oss-process=image/format,webp'
            }
          }]
        }
     
        <img class="bg-img" src="../images/bg.png?x-oss-process=image/format,webp" alt="">
     
        change to
     
        <img class="bg-img" src="../images/bg.png?x-oss-process=image/format,webp" alt="">
     
        without remove the '?x-oss-process=image/format,webp'
     
     })

    Install

    npm i meetyou-url-loader

    DownloadsWeekly Downloads

    0

    Version

    1.0.5

    License

    ISC

    Last publish

    Collaborators

    • yitalalww