Package Exports
- postcss-place
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-place) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Place 
Place lets you use place-*
properties as shorthands for align-*
and justify-*
per the CSS Box Alignment Module Level 3.
/* before */
.example {
place-self: center;
place-content: space-between center;
}
/* after */
.example {
align-self: center;
justify-self: center;
align-content: space-between;
justify-content: center;
}
Options
prefix
Type: String
Default: null
Specifies a prefix to be surrounded by dashes before the declaration (e.g. prefix: 'x'
changes the detected property to -x-place-content
).
Usage
Add Place to your build tool:
npm install jonathantneal/postcss-place --save-dev
Node
require('postcss-place').process(YOUR_CSS, { /* options */ });
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Load Place as a PostCSS plugin:
postcss([
require('postcss-place')({ /* options */ })
]).process(YOUR_CSS, /* options */);
Gulp
Add Gulp PostCSS to your build tool:
npm install gulp-postcss --save-dev
Enable Place within your Gulpfile:
var postcss = require('gulp-postcss');
gulp.task('css', function () {
return gulp.src('./src/*.css').pipe(
postcss([
require('postcss-place')({ /* options */ })
])
).pipe(
gulp.dest('.')
);
});
Grunt
Add Grunt PostCSS to your build tool:
npm install grunt-postcss --save-dev
Enable Place within your Gruntfile:
grunt.loadNpmTasks('grunt-postcss');
grunt.initConfig({
postcss: {
options: {
use: [
require('postcss-place')({ /* options */ })
]
},
dist: {
src: '*.css'
}
}
});