小编Bol*_*lko的帖子

在没有Gulp的情况下在npm中使用Autoprefixer

我是否需要安装所有这些依赖项和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"
     }
Run Code Online (Sandbox Code Playgroud)

如下所述:http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/

但我得到一个错误,说系统找不到文件,不知道它意味着哪个文件.

我装了它

npm install autoprefixer --save-dev
Run Code Online (Sandbox Code Playgroud)

node.js npm autoprefixer

12
推荐指数
1
解决办法
8130
查看次数

标签 统计

autoprefixer ×1

node.js ×1

npm ×1