CSS To Nest
CSS To Nest transforms unnested CSS into nested CSS, following the CSS Nesting Module specification. This might be helpful for updating a project with a single file of legacy CSS.
/* before */ /* after */ } }}
Usage
Add CSS To Nest to your build tool:
npm install postcss-to-nest --save-dev
Node
;
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Load CSS To Nest as a PostCSS plugin:
;
Gulp
Add Gulp PostCSS to your build tool:
npm install gulp-postcss --save-dev
Enable CSS To Nest within your Gulpfile:
var postcss = ; gulp;
Grunt
Add Grunt PostCSS to your build tool:
npm install grunt-postcss --save-dev
Enable CSS To Nest within your Gruntfile:
grunt; grunt;