This repository was archived by the owner on Mar 17, 2021. It is now read-only.
This repository was 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
Description
- 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
Metadata
Metadata
Assignees
Labels
No labels