我是否需要安装所有这些依赖项和 devDependencies 才能在节点中使用 autoprefixer,尽管我根本不使用 gulp?
https://github.com/postcss/autoprefixer/blob/master/package.json
我想在这样的节点中使用它:
"scripts": {
"build:css": "autoprefixer -b 'last 2 versions' <assets/styles/main.css | cssmin > dist/main.css"
}
如此处所述:http ://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/
但是我收到一条错误消息,说系统找不到文件,不知道这意味着哪个文件。
我安装了它
npm install autoprefixer --save-dev