1.0.5 • Published 5 years ago

wtt-sass v1.0.5

Weekly downloads
3
License
ISC
Repository
gitlab
Last release
5 years ago

wtt-sass

配置(当前是基于 vue-cli3 引入),vue.config.js

  1. 引入
let includePaths = require('wtt-sass').includePaths; // includePaths是wtt-sass中声明的文件的绝对路径

// 拼接上 @import
includePaths = includePaths.map((v, k) => {
  return `@import "${v}";`
})
  1. 配置 sass-loader
// sass-loader 插件的 option 中增加如下字段:
sass:{
  data: `${includePaths.join('')}`
}
1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago