1.0.1 • Published 7 years ago

spostcss-brunch v1.0.1

Weekly downloads
47
License
MIT
Repository
github
Last release
7 years ago

spostcss-brunch

Please see the original module postcss-brunch if you're looking for a original postcss-brunch.

This module is just to support sass + postcss (esp; autoprefixer). Once the war has been ended, it will no longer be needed.

An example of sass-brunch + autoprefixer

module.exports = {
	// ...
  plugins: {
    postcss: {
      ignore: /vendor.scss/,
      processors: [
        require('autoprefixer')()
      ]
    },
    sass: {
      allowCache: true,
      options: {
        includePaths: ['node_modules/bootstrap/scss', 'node_modules/font-awesome/scss'],
        precision: 8
      }
    }
  }
}

Why does the module name have "s" prefix?

Plugins are executed in order they are specified in package.json: when they operate on the same files (usually target files), their order can impact their ability to work. - http://brunch.io/docs/using-plugins

postcss-brunch plugin has to be executed after executing sass-brunch. Like..

  "devDependencies": {
    "autoprefixer": "^7.1.4",
    "sass-brunch": "^2.10.4",
    "spostcss-brunch": "^1.0.0"
  },

License

MIT