Giter Club home page Giter Club logo

Comments (4)

farnazj avatar farnazj commented on June 12, 2024 3

Oh setting the following in vue.config.js solved the issue:

 css: {
    extract: false
  }

Thank you!

from vue-web-extension.

Kocal avatar Kocal commented on June 12, 2024 2

For production, styles are extracted into a dedicated .css file. They are not loaded by your javascript anymore unlike in development (where css extraction is not enabled).

Also for a popup, the HTML file is processed by webpack and it injects CSS/JS files automatically, but this can't work with a content script.

Can you try to disable CSS extraction in your vue.config.js? See documentation: https://cli.vuejs.org/config/#css-extract

from vue-web-extension.

Kocal avatar Kocal commented on June 12, 2024

Hi!

Do you have a .css generated (containing Vuetify CSS) when compiling?
Don't you need to import vuetify/dist/vuetify.min.css?

from vue-web-extension.

farnazj avatar farnazj commented on June 12, 2024

Hello!
In dist/css I get a chunk-vendors.some hash.css and a content-script.some hash.css when I compile for build mode which contain Vuetify CSS. But these stylesheets don't seem to be inserted into the webpage when I load the production built extension into Chrome. (actually a question I have is how are they automatically inserted into the webpage when building for development?)
Since I import Vuetify from vuetify/lib/framework I don't think I need to import from vuetify/dist/vuetify.min.css . That's what has worked for the dev build and other non- browser extension projects I've worked on.

from vue-web-extension.

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.