Reputation: 462
Just to make it easier, I'm new to Vue Cli and Vue as whole.
In Vue Cli 2, I think it was something like this:
Vue init webpack-simple xxx
But now in the newest major update (3) it is like this:
Vue create xxx
And it can't you give an option to install Webpack-simple
I tried to do this https://cli.vuejs.org/guide/webpack.html#simple-configuration but I'm not sure that it's what I want. Is it?
Upvotes: 2
Views: 4059
Reputation: 461
You need to install @vue/cli-init
for init
to work with vue cli 3.
Vue CLI 3 uses the same vue binary, so it overwrites Vue CLI 2 (vue-cli). If you still need the legacy vue init functionality, you can install a global bridge:
npm install -g @vue/cli-init
# vue init now works exactly the same as [email protected]
vue init webpack my-project
Upvotes: 5