[英语版本] Vuejs 全家桶之目录架构

365 阅读1分钟
原文链接: medium.com

Setup SCSS environment

In a good develop environment, SCSS style technique is indispensable, so you need these 2 package — node-sass and sass-loader

npm install --save-dev node-sass sass-loader

OK, Basic initial package setup is ready, so….

npm run dev

Final result from the browser as below

But still not finished yet, a few minutes ago installed SCSS package, now go back to editor and open any one component file such as Hello.vue inside components folder, Let’s test SCSS environment !

look at the <style scoped> ... </style> this part

Modify to…

Then save it then go back to browser

Well, the SCSS seems like correct