PostCSS Plugins Preset including:
- Autoprefixing
- Media-query combination
- CSS Nesting
- @extend support
- Automatically add will-change for transitions
- Use
cssnanowhenprocess.env.NODE_ENV === 'production'
This can be done via modifying your .npmrc per-project, or ideally logging in once for your machine.
You will need a PAT with:
reporead:packages
NOTE: --scope is important to keep npm as your default registry. This only looks for @bluehost/* packages on GitHub.
$ npm login --scope=@bluehost --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKEN
> Email: PUBLIC-EMAIL-ADDRESSnpm i --save-dev @bluehost/newfold-postcss-plugins-preset
module.exports = {
plugins: [
require('@bluehost/newfold-postcss-plugins-preset')
]
}