Introducing sublime autoprefix css mac configuration method

藏色散人
Release: 2020-11-09 15:51:22
forward
1843 people have browsed it

The following tutorial column will introduce you to the sublime autoprefix css mac configuration method from thesublimetutorial column. I hope it will be helpful to friends in need!

Introducing sublime autoprefix css mac configuration method

Introduction

sublime autoprefix css is a plug-in that automatically adds css compatibility prefixes in sublime.

Problem

If nodejs on mac fails to run in a non-system default installation path, node cannot be found
The reason is known by checking the readme description on autoprefix github Autoprefix can only load node through the "/usr/local/bin" path in Mac.

Solution

Add node soft connection in the "/usr/local/bin" directory and jump to nodejs
Soft connection creation method:

ln -s /Users/chris/node/node-v12.16.2-darwin-x64/bin/node /usr/local/bin/
Copy after login

At this time, the autoprefix css in sublime can run normally and add prefixes to css.

Tips

The autoprefix css in sublime can only add prefixes to pure css. Add a prefix to the file. Files containing html and js cannot be added

The above is the detailed content of Introducing sublime autoprefix css mac configuration method. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!