GithubHelp home page GithubHelp logo

Feature request: add option to make unlighthouse-cli build-static assets have a relative path and use <base> tag about unlighthouse HOT 6 CLOSED

harlan-zw avatar harlan-zw commented on September 14, 2024
Feature request: add option to make unlighthouse-cli build-static assets have a relative path and use tag

from unlighthouse.

Comments (6)

harlan-zw avatar harlan-zw commented on September 14, 2024 1

Hey @bux

Thanks for taking the time to make an issue.

What exactly is the issue with routerPrefix? I had created that configuration initially to solve this exact issue, as some integrations run from /__unlighthouse/.

from unlighthouse.

bux avatar bux commented on September 14, 2024

hi @harlan-zw

i'm using this config for unlighthouse-ci with --build-static

export default {
  site: "vite-starter-template.netlify.app",
  outputPath: "2022-04-07",
  routerPrefix: "lhk/2022-04-07",

  scanner: {
    device: "mobile",
    throttle: true,
  },
};

The results folder is being output to the subfolder lhk of the root project dir.
When running a node HTTP server (serve) from the root project dir and navigating to the the subfolder lhk/2022-04-07 I can see some part of unlighthouse, but some assets fail to load and screenshots and reports don't seem to use the routerPrefix:

image
image
image

from unlighthouse.

harlan-zw avatar harlan-zw commented on September 14, 2024

Hey @bux

This should be sorted in version 0.3.20. Let me know if you have any other issues :)

npx [email protected] --config-file <your-config> --build-static

from unlighthouse.

bux avatar bux commented on September 14, 2024

Awesome. I will take a look into it. Thanks

from unlighthouse.

bux avatar bux commented on September 14, 2024

@harlan-zw

unlighthouse/0.3.21 win32-x64 node-v16.14.0

Does unlighthouse keep a build cache somewhere?
The index.[].js that is created contains an older prefix:
image

from unlighthouse.

bux avatar bux commented on September 14, 2024

@harlan-zw do you know what is happening here?

from unlighthouse.

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.