方法:首先安装【node-sass和sass-loader】依赖;然后打开【webpack.base.conf.js】文件,在rule中添加scss规则;最后在【<style><style>】标签内写scss样式。