【问题标题】:migration from grunt-autoprefixer to grunt-postcss从 grunt-autoprefixer 迁移到 grunt-postcss
【发布时间】:2015-10-06 03:40:50
【问题描述】:

只要不推荐使用grunt-autoprefixer,我就想迁移到grunt-postcss

我在 grunt 世界(和依赖项)中很新,我在文档中找不到进行迁移所需的内容。

要处理我需要三个步骤:

1- 卸载 grunt-autoprefixer

我想我必须先运行npm uninstall grunt-autoprefixer --save-dev

2- 安装 grunt-postcss

然后是npm install grunt-postcss --save-dev

但我完全不确定我是否要做npm install grunt-postcss pixrem autoprefixer-core cssnano

3- 更新配置

那我应该修改Gruntfile.js。所以实际上我有这个部分:

autoprefixer: {
  options: {
    browsers: ['last 1 version']
  },
  dist: {
    files: [{
      expand: true,
      cwd: '.tmp/styles/',
      src: '{,*/}*.css',
      dest: '.tmp/styles/'
    }]
  }
},

我的问题:

  1. 能否确认卸载/安装部分?
  2. 如何迁移配置?

【问题讨论】:

    标签: angularjs node.js gruntjs


    【解决方案1】:

    为您和将来要迁移的任何人编写了迁移指南,请参考:

    https://github.com/nDmitry/grunt-postcss#how-to-migrate-from-grunt-autoprefixer

    【讨论】:

      猜你喜欢
      • 2016-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-19
      • 1970-01-01
      • 2023-03-18
      • 2015-05-18
      • 1970-01-01
      相关资源
      最近更新 更多