Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Specifying options as a query string does not work anymore #183

Closed
blikblum opened this issue Jun 16, 2019 · 0 comments · Fixed by #185
Closed

Specifying options as a query string does not work anymore #183

blikblum opened this issue Jun 16, 2019 · 0 comments · Fixed by #185

Comments

@blikblum
Copy link

  • Operating System: Windows
  • Node Version: 8.11
  • NPM Version: 5.6
  • webpack Version: 4.34
  • url-loader Version: 2.0

Expected Behavior

Passing options as query strings should work:

   {
        test: /\.(woff|woff2)$/,
        use: 'url-loader?limit=10000&mimetype=application/font-woff'
   }

Actual Behavior

An error occurs while compiling:

options.limit should be boolean,number

Code

// webpack.config.js
// relevant part
 {
  module: {
    rules: [
     {
        test: /\.(woff|woff2)$/,
        use: 'url-loader?limit=10000&mimetype=application/font-woff'
      }, {
        test: /\.ttf$/,
        use: 'url-loader?limit=10000&mimetype=application/octet-stream'
      }
     ]

  }
}

How Do We Reproduce?

Just use url-loader with a query string

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant