简体   繁体   English

VSCode AutoPrefixer 扩展不起作用

[英]VSCode AutoPrefixer extension not working

I installed the AutoPrefixer plugin, trying to run it but it doesn't work.我安装了 AutoPrefixer 插件,试图运行它,但它不起作用。

I'm highlighting all of my CSS, then hit command pallet, then hit AutoPrefixer:run.我突出显示我的所有 CSS,然后点击命令托盘,然后点击 AutoPrefixer:run。

Nothing happens.什么都没发生。 Am I missing a step?我错过了一步吗?

I have the same issue and managed to solve with adding this options in settings.json for the Autoprefixer options:我有同样的问题,并设法通过在 settings.json 中添加此选项来解决 Autoprefixer 选项:

"autoprefixer.options": {
        "browsers": [
            "last 4 versions",
            "ie >= 9",
            "> 5%"
        ]
    }

After adding this, select all the css and hit autoprefixer as you do before and should work.添加后,select 所有 css 并像以前一样点击自动前缀,应该可以工作。 The original answer is from here, hope this solve your problem as mine: https://github.com/mrmlnc/vscode-autoprefixer/issues/122#issuecomment-629762093原来的答案来自这里,希望这能解决你的问题: https://github.com/mrmlnc/vscode-autoprefixer/issues/122#issuecomment-629762093

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM