Questions tagged [urlloader]

223 questions
0
votes
1 answer

Unable to show local image using require and webpack

I am struggling to show local images in my react app. I am calling the image inside my render method using the require() function, like so: Not even importing images work, like: import icon…
0
votes
1 answer

webpack url loader doesn't load jpg image

I have some problems importing jpg images with webpack and url-loader. Here's my webpack config: const common = { entry: path.join(PATHS.src, 'index.tsx'), output: { path: PATHS.build, filename: 'bundle.js', }, resolve: { …
0
votes
1 answer

Unpacking image with URL-Loader in Webpack still failing

I'm just trying to get url-loader setup so I can display images in my React App, and I keep getting the error: Module parse failed: Unexpected character '�' I have this in my webpack.config.js file: module: { rules: [ { test:…
David
  • 944
  • 1
  • 13
  • 20
0
votes
0 answers

How can I configure webpack to handle image paths in SCSS files

I have a project using the Vue CLI with the webpack-simple template. I'm pulling in an NPM package that I'm working on that provides sass files. Some of the sass files have url's to images within the NPM propject. Here is an example of the style in…
Doug Steinberg
  • 1,122
  • 14
  • 32
0
votes
0 answers

How to get a value in a callback function out of the callback

I am writing a Webpack loader for Pug files. It loads all the dependent images referenced in the Pug file, uses file-loader to copy them to the appropriate directory, and replaces require() calls in the Pug file with the URLs of the resultant…
user7898281
0
votes
0 answers

Inlining background image in react

The following code works for me import c1 from "./myImage.png" export default class MyClass extends React.Component { render() { let style = { backgroundImage: "url(" + c1 + ")", } return (
Oliver Watkins
  • 12,575
  • 33
  • 119
  • 225
0
votes
1 answer

Flash movie in Firefox intermittently load XML with URLLoader

I have a Flash movie that behaves as follows: Movie loads > tries to load an XML file using URLLoader.load() > uses the data in the XML to load some images into the movie. The requirement was for updates to the XML file to be picked up within 10…
Paul Houghton
  • 491
  • 3
  • 9
0
votes
2 answers

webpack 2 and background images in css

I am using webpack2 (I am very new to it) in a react app. Everything works fine when I am loading images inside the app, via the img tag. But I cannot have it working when using the image as background url inside the css. this is my…
Kaiser Soze
  • 1,362
  • 3
  • 14
  • 31
0
votes
2 answers

how to config the url-loader in webpack to transform only some folders?

webpack.js file.jpg: transform to base64 by url-loader file.png: use file-loader just use the ext to decide all file.jpg in project to transform。 but how to deal the file.gif? indeed I want to know how to config the url-loader in webpack to…
daidaibenben
  • 33
  • 1
  • 6
0
votes
1 answer

Unable to get images to load using dotnet angular webpack

I followed the "Building Single Page Applications on ASP.NET Core with JavaScriptServices" blog post. And from that I was able to create a new Angular2 template running on ASp.NET Core. That app works great and uses webpack (didn't know that was…
David Pine
  • 23,787
  • 10
  • 79
  • 107
0
votes
1 answer

Flash Security Exception in URLLoader (subdomain issue)

I'm working on a Flash magazine. When the magazine loads, it starts fetching all the needed images for the pages. However, I've run into a strange Security Issue :S. Let me try to explain... This is how everything is setup on the…
Ale Morales
  • 2,728
  • 4
  • 29
  • 42
0
votes
2 answers

Cannot retrieve images in my react component

I am quite new at coding so please be indulgent... I searched a lot and I don't manage to get my issue fixed :( I would like to get my images rendered through and html img tag. I saw that the best way in react is to import my images. Like this…
Clement Levesque
  • 1,202
  • 4
  • 18
  • 30
0
votes
1 answer

Can't load fonts with file-loader and webpack v2

I'm having trouble loading fonts with webpack v2 and file-loader. Using url-loader for any font-files everything works perfectly. However, I want to use file-loader so we can cache font files rather than storing all images and fonts in the bundled…
0
votes
1 answer

Flash AS3 read proxy server response with URLLoader

I am running an embedded flash 'swf' inside a LAN network with a proxy server. Proxy server interrupts some urls and returns my usage information. I am trying to access this information by sending those urls. I can see this traffic in firebug ,But…
feminkk
  • 1,135
  • 2
  • 14
  • 18
0
votes
1 answer

Filepath clearification in AS3 FlashDevelop

I had this issue for about 4 hours today where I could not load an XML file in AS3. Kept giving me a Stream error. Seems like it couldn't find the file path. So I grabbed the error: Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.…
PHaZerous
  • 59
  • 9