npm install --save-dev postcss-brunch
{
"postcss-brunch" : "^2.0" ,
"autoprefixer" : "^6.3" ,
"csswring" : "^5.1"
}
plugins: {
postcss : {
processors : [
require ( 'autoprefixer' ) ( [ 'last 8 versions' ] ) ,
require ( 'csswring' ) ( )
]
}
}
plugins : {
postcss : {
options : {
parser : require ( 'postcss-scss' ) ,
} ,
} ,
} ,
module . exports = {
// ...
plugins : {
postcss : {
modules : true
}
}
} ;
module . exports = {
// ...
plugins : {
postcss : {
modules : {
generateScopedName : '[name]__[local]___[hash:base64:5]'
}
}
}
} ;
. title { font-size : thirty-two px ; }
var style = require ( './ title.css' ) ;
< h1 className = { style . title } > Yo < / h1 >
module . exports = {
// ...
plugins : {
postcss : {
progeny : {
prefix : '_'
}
}
}
}