Giter Site home page Giter Site logo

Comments (5)

djmtype avatar djmtype commented on June 9, 2024 1

Thanks @onderceylan!

from pwa-asset-generator.

onderceylan avatar onderceylan commented on June 9, 2024

Hi @djmtype, that's already possible in the current version. You can either use CSS background URLs or your custom HTML inputs to accomplish that.

Examples;

# Option 1
pwa-asset-generator icon.svg ./assets -b "url(https://wallpapercrafter.com/sizes/2560x1440/10631-starry-sky-stars-space-dark-astronomy-4k.jpg) no-repeat center center fixed"

# Option 2
pwa-asset-generator icon-with-custom-bg.html ./assets

from pwa-asset-generator.

djmtype avatar djmtype commented on June 9, 2024

@onderceylan The one thing I wanted to mention, in order to use Option 1, I couldn't reference an image relative to my project. It's required the url address needs to be from full url address? So using url(/public/bk.jpg) or url(./public/bk.jpg) or url(public/bk.jpg)didn't work in any case.

from pwa-asset-generator.

onderceylan avatar onderceylan commented on June 9, 2024

That's right. It has to be a remote URL, or a local web server URL in your machine. If you really need to use relative path, best option would be doing that with your own html input. It provides so much flexibility including using relative image paths.

from pwa-asset-generator.

djmtype avatar djmtype commented on June 9, 2024

best option would be doing that with your own html input.

Exactly, thank you.

from pwa-asset-generator.

Related Issues (20)

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.