Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No style when building examples #8

Open
eai04191 opened this issue Jun 1, 2021 · 8 comments
Open

No style when building examples #8

eai04191 opened this issue Jun 1, 2021 · 8 comments

Comments

@eai04191
Copy link

eai04191 commented Jun 1, 2021

image
image

I've tried vue-embedded-options-page and vue-full-options-page, but neither seems to load the style.

The built css is in dist/options, but it doesn't seem to be loaded.

image

@StarkShang
Copy link
Owner

Hello.
Because of iife output format, css files are bundle into main.js.
In current dev branch, bundle strategy is differ:

  • umd output format is used for content scripts and background service worker, css files included by js also integrate into output js file. However, css files list in content scirpts sector of manifest.json, it will keep independence.
  • For options and popup, they are like normal vue project or other front end project.

@bryzettler
Copy link

Should the styles not be injected into the main.js and be loaded on the options page?

@cxfksword
Copy link

Same problem, option page not link to css file

@tobsch
Copy link

tobsch commented Aug 14, 2021

@bryzettler / @cxfksword / @StarkShang any known solution?

@boka18
Copy link

boka18 commented Sep 22, 2021

+1

2 similar comments
@VisZhangrong
Copy link

+1

@woailizhang1
Copy link

+1

@JoseMoreville
Copy link

2022 and i still have no solution for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants