The following tutorial column will introduce you to the sublime autoprefix css mac configuration method from the sublime tutorial column. I hope it will be helpful to friends in need!
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/
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!