Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-style-to-vw

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-style-to-vw - npm Package Compare versions

Comparing version 1.8.3 to 1.8.4

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc