vite-plugin-style-to-vw
Advanced tools
Comparing version 1.8.3 to 1.8.4
{ | ||
"name": "vite-plugin-style-to-vw", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "一个可以将签内样式px转换vw的plugin", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -84,3 +84,2 @@ import type { IdefaultsProp } from './index.d' | ||
} | ||
console.log('code',code) | ||
return code | ||
@@ -99,3 +98,3 @@ }else { | ||
// 异步写入文件 | ||
fs.writeFileSync(__dirname + '/file.json', JSON.stringify(customOptions), 'utf8'); | ||
fs.writeFileSync(process.cwd()+"/node_modules/vite-plugin-style-to-vw/dist/file.json", JSON.stringify(customOptions), 'utf8'); | ||
// console.log('文件写入成功!'); | ||
@@ -239,3 +238,3 @@ } catch (error) { | ||
// 读取文件,node端生成合并的配置, | ||
const json = await import('./file.json') | ||
const json = await import('/node_modules/vite-plugin-style-to-vw/dist/file.json') | ||
extraOptions = json.default | ||
@@ -242,0 +241,0 @@ } catch (error) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30590