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

Impossible to externalise quasar #41

Open
lopes-gustavo opened this issue Jan 28, 2021 · 2 comments
Open

Impossible to externalise quasar #41

lopes-gustavo opened this issue Jan 28, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@lopes-gustavo
Copy link

lopes-gustavo commented Jan 28, 2021

I'm using single-spa and importing a Vue app with Quasar plugin.
I'm trying to make quasar external (loading it via umd bundle), but the plugin won't allow me.

I tried both:

chainWebpack: config => {
    config.externals({
      ...config.get('externals'),
      'quasar': 'quasar'
    })
  },

and

configureWebpack: config => {
    config.externals = [
      'quasar'
    ]
  },

To Reproduce
Steps to reproduce the behavior:

  1. Install quasar plugin inside a vue project
  2. Add quasar to externals in webpack config
  3. Analyse bundle
  4. See quasar is still there

Expected behavior
Bundle would not have quasar components, as it's external

Platform (please complete the following information):
OS: MacOS Big Sur 11.0.1
Node: 12.16.2
NPM: 6.14.8
Yarn: Not applicable
Browsers: Not applicable
iOS: Not applicable
Android: Not applicable
Electron: Not applicable

@lopes-gustavo lopes-gustavo added the bug Something isn't working label Jan 28, 2021
@alemila01
Copy link

alemila01 commented Feb 19, 2021

I'm trying to do the same thing but can't solve :/
I think the plugin miss the options to import all components like framework: { all: true } with quasar cli

@mila76
Copy link

mila76 commented Mar 6, 2021

Even with build as lib this plugin create 300kb of quasar in the output

With the old v1 work as expected

Following some of this https://stackoverflow.com/questions/65810613/how-can-i-eject-quasar-cli-and-use-vue-quasar-umd and removing plugin work perfectly (I do not used the autoimport of that link only the initialization of quasar plugin)
Yes I need to import manually (like older version) but the build js is free of the quasar stuff

Hope someday this is fixed, I know use of the quasar cli is the preferred way but I'm working with some mixed old stuff and a build free of the quasar stuff is essential

Even a guide to build an externalized quasar with the official cli is good for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants