We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected behaviour is to have correct file name. Example url("fonts/Graphik-Regular.eot?#iefix") format("embedded-opentype")
Currently it outputs changes path and name to [object Module] Example: src: url("[object Module]?#iefix") format("embedded-opentype")
Webpack config related part
, { test: /\.(png|woff|woff2|eot|otf|ttf|svg)$/, use: [ { loader: 'url-loader', options: { limit: 1000, name: '[name].[ext]', outputPath: 'fonts/' } } ] }, { test: /\.scss$/, use: [{ loader: MiniCssExtractPlugin.loader }, { loader: "css-loader", options: { sourceMap: true } }, "sass-loader" ] }
SCSS sample
@font-face { font-family: $graphik-regular; src: url('../fonts/Graphik-Regular.eot'); src: url('../fonts/Graphik-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/Graphik-Regular.woff2') format('woff2'), url('../fonts/Graphik-Regular.woff') format('woff'), url('../fonts/Graphik-Regular.ttf') format('truetype'), url('../fonts/Graphik-Regular.svg#Graphik-Regular') format('svg'); font-style: normal; }
You can have a scss with sample below
The text was updated successfully, but these errors were encountered:
Please create reproducible test repo
Sorry, something went wrong.
Hi
Please find it here https://github.com/abhijithbabu/testrepo
Thanks
Thanks for issue, problem in css-loader, WIP
url
Fixed webpack-contrib/css-loader#1001 release will be soon
No branches or pull requests
Expected Behavior
Expected behaviour is to have correct file name.
Example url("fonts/Graphik-Regular.eot?#iefix") format("embedded-opentype")
Actual Behavior
Currently it outputs changes path and name to [object Module]
Example: src: url("[object Module]?#iefix") format("embedded-opentype")
Code
Webpack config related part
SCSS sample
How Do We Reproduce?
You can have a scss with sample below
The text was updated successfully, but these errors were encountered: