@dcloudio/vue-cli-plugin-hbuilderx 2.0.2-alpha-4050720250320001 → 2.0.2-alpha-4060120250328001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,9 @@ const plugins = [
36
36
  require('@dcloudio/vue-cli-plugin-uni/packages/postcss')
37
37
  ]
38
38
  if (webpack.version[0] > 4) {
39
- options.postcssOptions = { plugins }
39
+ options.postcssOptions = {
40
+ plugins
41
+ }
40
42
  } else {
41
43
  options.parser = require('postcss-comment')
42
44
  options.plugins = plugins
@@ -51,11 +53,19 @@ const isSass = fs.existsSync(path.resolve(process.env.UNI_INPUT_DIR, 'uni.sass')
51
53
  const isScss = fs.existsSync(path.resolve(process.env.UNI_INPUT_DIR, 'uni.scss'))
52
54
  let sassData = isSass ? getPlatformSass() : getPlatformScss()
53
55
 
54
- if (isSass) {
55
- sassData = '@import "@/uni.sass"'
56
- } else if (isScss) {
57
- sassData = `${sassData}
58
- @import "@/uni.scss";`
56
+ if (process.env.UNI_SASS_IMPLEMENTATION_NAME === 'dart-sass') {
57
+ if (isSass) {
58
+ sassData = '@use "@/uni.sass" as *'
59
+ } else if (isScss) {
60
+ sassData = '@use "@/uni.scss" as *;'
61
+ }
62
+ } else {
63
+ if (isSass) {
64
+ sassData = '@import "@/uni.sass"'
65
+ } else if (isScss) {
66
+ sassData = `${sassData}
67
+ @import "@/uni.scss";`
68
+ }
59
69
  }
60
70
 
61
71
  const scssLoader = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-hbuilderx",
3
- "version": "2.0.2-alpha-4050720250320001",
3
+ "version": "2.0.2-alpha-4060120250328001",
4
4
  "description": "HBuilderX plugin for vue-cli 3",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -18,5 +18,5 @@
18
18
  "css": "~2.2.1",
19
19
  "escodegen": "^1.8.1"
20
20
  },
21
- "gitHead": "1a2c7c78aa6e4d9c6b1b743cd2214c836aef0ee1"
21
+ "gitHead": "c588ff9709aeeb559c7c5a2577ed24ebb5ec5719"
22
22
  }