Comments (4)
Oh setting the following in vue.config.js
solved the issue:
css: {
extract: false
}
Thank you!
from vue-web-extension.
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.
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.
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)
- executeScript with a file?
- Extension not reloading (webpack-extension-reloader)
- Does it support Vue3 and TypeScript? HOT 1
- 'appendChild' of undefined when adding css
- ENOENT: no such file or directory upon project initialisation HOT 5
- When I run default Vue Chrome Extension, Hello World component is not being rendered HOT 1
- Error an unexpected error occurred: "https://registry.nlark.com/@types/http-proxy/download/@types/http-proxy-1.17.7.tgz: Request failed \"503 Service Unavailable\"". HOT 2
- support Vuetify HOT 1
- Error running freshly created project HOT 1
- Vuex: `$store` undefined HOT 2
- Running the dev server on a specified port HOT 5
- Is the repository compatible with Manifest V3 HOT 1
- How to use jQuery in background.js
- Cannot fetch
- Cannot serve and build HOT 3
- cannot run serve HOT 1
- Unable to compile or run HOT 6
- Built result will be different when environment change or node_modules be reinstalled HOT 6
- 执行 “npm install -g @vue/cli npm install -g @vue/cli-init vue create --preset kocal/vue-web-extension my-extension” 提示Error resolving webpackConfig TypeError: Cannot read property 'ignore' of undefined .. ....new-tab-page\node_modules\vue-cli-plugin-browser-extension\index.js:129:20 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-web-extension.