Giter VIP home page Giter VIP logo

Comments (3)

freddy38510 avatar freddy38510 commented on August 22, 2024

Thanks for having created a reproduction repository :)

Which content is concerned exactly ? Is it the red square ?

The only thing I can see is a FOUT (Flash of Unstyled Text).

from quasar-app-extension-ssg.

freddy38510 avatar freddy38510 commented on August 22, 2024

You were right, the style of index.vue file is not inlined which causes a FOUC.

It seems that adding the vue-svg-inline-loader loader to the webpack rules with the method extendWebpack breaks something.

The style is correctly inlined if you use chainWebpack instead of extendWebpack in your quasar.conf.js file.

Please try replacing the method extendWebpack by this one:

chainWebpack: config => {
  config.module
    .rule("vue")
    .use("vue-svg-inline-loader")
    .loader("vue-svg-inline-loader")
    .options({ addTitle: true, });
}

Let me know if there is any FOUC after this change.

=======================================================

Edit: the issue is not the method itself. Pushing a new vue rule to the end of the rules array breaks the previous existing vue rule.

If you want to continue using the extendWebpack method you can write it like this:

extendWebpack(config) {
  const vueRuleIdx = config.module.rules.findIndex(({ test }) => test.toString() === /\.vue$/.toString());
  
  config.module.rules[vueRuleIdx].use.push({
    loader: 'vue-svg-inline-loader',
    options: {
      addTitle: true,
    },
  })
},

from quasar-app-extension-ssg.

vandelpavel avatar vandelpavel commented on August 22, 2024

Thank you!

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.