Package Exports
- @skilld/postcss-drupal-breakpoints
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 (@skilld/postcss-drupal-breakpoints) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PostCSS Drupal Breakpoints 
PostCSS plugin to get drupal theme breakpoints in css variables.
Input
css
@drupal-breakpoint wide_1x {
.pager {
display: none;
}
}
THEMENAME.breakpoints.yml
THEMENAME.mobile:
label: mobile
mediaQuery: '(min-width: 0em)'
weight: 0
multipliers:
- 1x
THEMENAME.wide:
label: wide
mediaQuery: 'screen and (min-width: 40em)'
weight: 1
multipliers:
- 1x
postcss.config.js
module.exports = ctx => ({
plugins: [
require('postcss-drupal-breakpoints')({
importFrom: './THEMENAME.breakpoints.yml',
themeName: 'THEMENAME'
}),
]
});
Output
@media screen and (min-width: 40em) {
.pager {
display: none;
}
}