vue+webpack+sass

一、引入依赖

npm i node-sass sass-loader -D

二、配置webpack的loader

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

三、使用

<style lang="scss">
@import '*.scss';
</style>

四、知识点

猜你喜欢

转载自www.cnblogs.com/linding/p/12401107.html