From 223cd9de29515ba6ffeb2621dc2c433e47629bf0 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 9 Mar 2022 16:32:52 +0800 Subject: [PATCH] fixed autoPrefixer --- index.js | 2 +- package.json | 4 ++-- test/demo.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index d305c5f..950c74c 100644 --- a/index.js +++ b/index.js @@ -181,7 +181,7 @@ function __init__() { prefixer = postcss().use( autoprefixer({ - browsers: options.browsers + overrideBrowserslist: options.browsers }) ) } diff --git a/package.json b/package.json index a56f210..fb4e813 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "scss-to-css", "displayName": "scss-to-css", "description": "🔥 The easiest way to compile scss file to css. And autoprefixer at the same time.", - "version": "3.2.0", + "version": "3.2.1", "publisher": "yutent", "author": "Yutent [@yutent]", "icon": "logo.png", @@ -89,7 +89,7 @@ ], "scripts": { "start": "esbuild index.js --bundle --outfile=out.js --external:vscode --format=cjs --platform=node", - "vscode:prepublish": "npm start -- --minify" + "pack": "npm start -- --minify" }, "license": "MIT", "dependencies": { diff --git a/test/demo.scss b/test/demo.scss index b3ddc5e..9b1fc40 100644 --- a/test/demo.scss +++ b/test/demo.scss @@ -2,7 +2,7 @@ ul { display: flex; li { - flex: 2; + flex: 3; color: #fff; } }