Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use the scss function by vue

Shulou Source: shulou.com Published: 2022-05-31 13:25:10 09月24日 Update

Most people do not understand the knowledge points of this article "vue how to use scss function", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "vue how to use scss function" article.

The specific steps are as follows:

1. First, create a vue.js project in vue-cli

Vue init webpack myvue

After the 2.vue.js project is created, use the npm command to install the sass dependency package

Npm install sass-loader-save-devnpm install node-sass-sava-dev

After the 3.sass dependency package is installed, configure the following in the webpack.base.conf.js file

{test: /\ .scss $/, loaders: ['style',' css', 'sass']}

4. Finally, after the webpack.base.conf.js file is configured, you can use the scss function by adding the lang= "scss" attribute to the style tag

The above is the content of this article on "how vue uses scss function". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Tags: Content functions documents articles steps knowledge articles projects configurations values commands most that is attributes more tags knowledge points industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology vpn Apple Linux Xiaomi