vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

command to eject webpack config

Open rafaesc opened this issue 8 years ago • 8 comments

What problem does this feature solve?

Hi

I use the new 3.0.0-alpha version. But I need to add a new alias to add a vue plugin, vue-konva because when I try to add it, I get the following error.

You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
found in
---> \<VLayer\>

The solution is here: https://github.com/vuejs-templates/webpack/issues/215#issuecomment-238095102

What does the proposed API look like?

I think that should have a new command like vue eject

rafaesc avatar Jan 30 '18 03:01 rafaesc

There's no eject. You will be able to configure everything, but the documentation is not out yet.

yyx990803 avatar Jan 30 '18 05:01 yyx990803

@yyx990803 Do you have an estimation of when this feature and its documentation will be available? So I can decide if I go back to 2.9 or if I should wait :wink:

Ldoppea avatar Jan 30 '18 13:01 Ldoppea

@yyx990803 Hey, we're using v3 beta1, and stumbled this issue too. How can we edit the webpack config (aside from downgrading to v2.9)?

kindofone avatar Feb 19 '18 13:02 kindofone

Hi @kindofone ,

The solution has been discussed here : https://github.com/vuejs/vue-cli/issues/589#issuecomment-361734701

Since the documentation has been created and can be found there : https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md

Also vuejs specific configuration is documented there : https://github.com/vuejs/vue-cli/blob/dev/docs/config.md

Ldoppea avatar Feb 19 '18 14:02 Ldoppea

@Ldoppea Awesome, thanks! ✌️

kindofone avatar Feb 20 '18 08:02 kindofone

The links no longer work Where can I find this?

danieljoffe avatar Aug 29 '18 05:08 danieljoffe

https://cli.vuejs.org/guide/webpack.html

Akryum avatar Aug 29 '18 08:08 Akryum

I ran into this thread and earlier https://github.com/vuejs-templates/webpack/issues/215 because of vue styled components as they require the local registration of components. So how can I use them?

kvedantmahajan avatar Sep 19 '18 07:09 kvedantmahajan