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

Install vue-loader with @vue/cli

Open tflori opened this issue 2 years ago • 0 comments

What problem does this feature solve?

I don't even know where to start describing this feature. I've created a vue application using vue cli now the hello world component tells me that I might also want to use vue-loader. So I checked out what is vue-loader and saw it enables me to use sass - of course I want to write sass.

Then I checked the "getting started" guide: https://vue-loader.vuejs.org/guide/ You know vue add typescript did a complicated job and even refactored my code and then I had typescript - yay.

The guide states out at the moment to use vue-cli to create a project - not even an example how to use it to get vue-loader. Maybe I'm using it already because it is the default? But as this all is hidden (no webpack config) I don't even know that.

Maybe you should just state out that "you probably already using vue-loader when you create the application with vue cli and you probably just want to install specific loaders (e. g. npm install --save sass-loader)". And if that will not be enough it will be good to know what to do if you have created the project with vue cli - maybe add it as plugin that you can install with vue add vue-loader

What does the proposed API look like?

$ vue add vue-loader ....

tflori avatar Jul 09 '21 16:07 tflori