一个使用JavaScript插件来转换CSS的工具
PostCss类似于js中的babel,自动转换工具,PostCss将css回归到了本源
npm init -y
yarn add gulp gulp-postcss autoprefixer gulp-rename cssnano //autoprefixer 是自动加前缀的工具
yarn add postcss-cssnext //cssnext是css的下一代,可以将css4和css3转换成css2
yarn add precss
使用前端工作流gulp对文件进行优化打包,使用的命令是gulp