@dtwo/postcss8
v1.1.3
Published
In the meantime, this module allows rapid migration:
Downloads
25
Readme
postcss8
In the meantime, this module allows rapid migration:
- Ensures supported dtwo version is used (
>= 2.16.0) - Forces to use upgraded dependencies using
__DTWO_PREPATHS__ - Will be updated accordingly to self-disable when a dtwo version with default postcss8 detected
- Use
autoprefixerinstead ofpostcss-preset-env
Usage
Install @dtwo/postcss8 as devDependency:
yarn add --dev @dtwo/postcss8
# or
npm i -D @dtwo/postcss8Add @dtwo/postcss8 to buildModules in dtwo.config:
// dtwo.config
export default {
buildModules: [
'@dtwo/postcss8'
]
}For module authors
If you have a dtwo module that requires postcss@8, install postcss@8 and @dtwo/postcss8 as dependency:
yarn add postcss@8 @dtwo/postcss8
# or
npm i postcss@8 @dtwo/postcss8Inside module:
export default async function() {
await this.addModule(require('@dtwo/postcss8'))
}