question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

overriding image paths

See original GitHub issue

hello all! 😃 this is my folder structure:

and here’s my configuration:

                base: './',
                css: '_dev/css/main.css',
                width: 1200,
                height: 500
            },
            src: '_dev/index.html',
            dest: '_dev/critical-css/index.css'

in the source folder, the path of an image would be url("../images/pizza.jpg");, critical transforms it in url("/_dev/images/pizza.jpg");

is there a way of not having that /_dev/ prefix but just a /, as of my folder structure that doesn’t work for me.

I’ve tried messing around with some critical options, but I can’t get it to work.

thanks you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
bezoerbcommented, May 7, 2016

@vlrprbttst have you tried setting base fo ./_dev ?

0reactions
bezoerbcommented, Nov 30, 2018

Closing this for now but feel free to re-open if anything doesn’t fit

Read more comments on GitHub >

github_iconTop Results From Across the Web

Override the image path of a file node | Maya 2023
In the file node Attribute Editor, right-click the file path area of the Image Name attribute and select Create Absolute Override for ...
Read more >
bootstrap-sass images not showing, or how to override a Gem ...
As you can see, it is using the project name as part of the path when it shouldn't. In my bootstrap_and_overrides.css.scss file I...
Read more >
500K+ Product Images, how to override/replace ...
Hi, for a customers project we need to import a lot of product images (500000+) which will end up in the images folder....
Read more >
Edit paths in Adobe Photoshop
Learn how to edit or adjust paths in Adobe Photoshop. ... You can override automatic switching of the Pen tool to the Add...
Read more >
Override Rails3 CSS stylesheet and image path - gists · GitHub
Override Rails3 CSS stylesheet and image path. GitHub Gist: instantly share code, notes, and snippets.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found