Coder Social home page Coder Social logo

Comments (3)

freddy38510 avatar freddy38510 commented on June 16, 2024 1

Thanks @gfordinal for reporting this issue!

The issue happens when the html string is minified by html-minifier. It can't parse the <html> tag attributes because it missing a space between the attributes dir=ltr and xmlns:cc="http://creativecommons.org/ns#".

I will create a PR at quasar repo to fix this. Meanwhile you can omit to add attributes to html tag by not setting htmlAttr with Meta Plugin.

Or you can also disable minification in quasar.conf.js, but that's not great for production.

Even better, you can use "onRouteRendered" hook:

// quasar.conf.js

ssg: {
  onRouteRendered: (html, route) => {
    if (route === '/') { // the route with Meta Plugin using 'htmlAttr'
      return html.replace(/(dir=(ltr|rtl))/, '$1 '); // add a space after "dir=ltr"
    }

    return html;
  },
},

I will also push a commit to improve readability of the errors printed in terminal.

from quasar-app-extension-ssg.

freddy38510 avatar freddy38510 commented on June 16, 2024

@gfordinal,

You can follow the PR at Quasar repo.

Also pushed a commit to improve readability of errors printed in terminal which is available in the latest published version 3.0.5

from quasar-app-extension-ssg.

gfordinal avatar gfordinal commented on June 16, 2024

@freddy38510 Kudos! Works like a charm!!

from quasar-app-extension-ssg.

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.