Git Product home page Git Product logo

Comments (6)

juliancwirko avatar juliancwirko commented on July 23, 2024

Hi, why you use unquote() here? Are there any bugs in the console?

from react-redux-webpack-meteor.

infacq avatar infacq commented on July 23, 2024

no bug at all. if I remove the unquote also the same

from react-redux-webpack-meteor.

juliancwirko avatar juliancwirko commented on July 23, 2024

You need to be careful with the imagge paths. This is not the same as Meteor's public folder so maybe here is the problem.

from react-redux-webpack-meteor.

infacq avatar infacq commented on July 23, 2024

yes. I notice everything is put right under image folder when webpack is run. So I simply place the image where I want it. Right now, the image is appear when I append ?resolve url but it only appear on Safari

from react-redux-webpack-meteor.

juliancwirko avatar juliancwirko commented on July 23, 2024

Hi, I think I know what is the problem. There is a bug in webpack style-loader when you use sourceMap and CSS Modules. In normal situation when you want to use background file you can do something like :

background-image url('./bg.png'); /* your bg.png file is in the same folder, and you need to use './' in that case */

And it works like it should without source maps enabled. I've implemented workaround by providing full publicPath in the dev mode.

Here is the example and it works like it should now. You can test it. If you have your image files somewhere else just use relative paths like:

background-image url('../../../path/to/images/bg.png');

Read more about background images in webpack here: https://github.com/webpack/css-loader#usage

from react-redux-webpack-meteor.

Kein avatar Kein commented on July 23, 2024

Trying to use background-image on discordapp.com:

Refused to load the image 'http://127.0.0.1:8888/video.svg' because it violates the following Content Security Policy directive: "img-src 'self' data: https://.discordapp.net https://.discordapp.com https://i.scdn.co https://i.ytimg.com https://i.imgur.com https://.gyfcat.com https://media.tenor.co https://media.tenor.com https://.youtube.com https://*.giphy.com https://static-cdn.jtvnw.net https://pbs.twimg.com https://assets.braintreegateway.com https://checkout.paypal.com".

from react-redux-webpack-meteor.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.