Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
0 answers
518 views

I have tried multiple solutions like url-loader configuration but can't be helpful. I also tried asset/resource and asset/inline but not worked for me. Any kind of help is appreciated. Remember I am ...
1 vote
2 answers
6k views

For a small front-end vanilla JS project, I am using Webpack 5. I will only have one HTML page with text and some small icons, so I would like to use url-loader for these icons. I installed the ...
0 votes
1 answer
167 views

I am developing a basic application so instead of using some framework I am just using Typescript with the help of Webpack. The problem is that I can't get webpack to take the images from the html ...
1 vote
0 answers
424 views

I added font to react typescript project after that I try to build but its showing error Error during bundle: Error: Unexpected character '' (Note that you need plugins to import files that are not ...
1 vote
0 answers
214 views

when I use CSS-loader I set the options of url value false,then my url-loader won't handle the img where used in backgroud-url. The following is my setting,where is my problem? css-loader config ...
6 votes
3 answers
5k views

In my scss file, I use background-image: url("../../../assets/images/home/banner-mobile.png"); The application runs successfully, but no background image is shown: The background image URL ...
0 votes
1 answer
2k views

I am trying to change the default webpack loader for SVG files in Gatsby JS. I want to use the 'svg-url-loader' instead of the default 'url-loader'. I have installed it, and it works fine with webpack-...
7 votes
1 answer
21k views

I am getting following error while loading image from local directory in my Next.js application Failed to compile ./pages/components/image.png 1:0 Module parse failed: Unexpected character '�' (1:0) ...
0 votes
1 answer
706 views

I have a component library that will be shipping with a few small assets (images). Those assets are imported into various components in the library. The build script uses babel (without webpack) to ...
4 votes
1 answer
963 views

I'm writing a library to import into other projects, to share custom components and styles. Problem is with font files, .woff/.ttf/etc. //_fonts.scss $woff_path: '~/woff'; $ttf_path: '~/ttf'; @font-...
Mat's user avatar
  • 101
1 vote
1 answer
290 views

I'm trying to use React Rainbow Components with Next.js (TypeScript) but I could not import font, so I used webpack with url-loader. For some reason I keep getting the error SyntaxError: Invalid or ...
2 votes
1 answer
977 views

Udate: Although I haven't been able to find out whether this is a feature or a bug. It seems url-loader can't process the assets used in the Svelte component unless those are loaded via require. So I ...
0 votes
1 answer
2k views

I am developing a website using React and I use Webpack to bundle the files. I use several .png images on the site but I have a problem with one of these since when I try to create the package, this ...
0 votes
0 answers
191 views

I am working on a FileUploader ( Images for now) which will enable the user to upload multiple files to the backend server in one go. I have the following setup Webpack configured with url-loader ...
1 vote
1 answer
5k views

I want to display some specific images as data-uri instead of linking to the image location. For that I'm using the url-loader. Here's my HTML (pug template): img.loading(:src="require('@/images/...

15 30 50 per page
1
2 3 4 5
...
15

AltStyle によって変換されたページ (->オリジナル) /