In the meantime, this module allows rapid migration:
npm install @dtwo/postcss8In 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 autoprefixer instead of postcss-preset-env
Install @dtwo/postcss8 as devDependency:
``sh`
yarn add --dev @dtwo/postcss8or
npm i -D @dtwo/postcss8
Add @dtwo/postcss8 to buildModules in dtwo.config:
`js`
// dtwo.config
export default {
buildModules: [
'@dtwo/postcss8'
]
}
If you have a dtwo module that requires postcss@8, install postcss@8 and @dtwo/postcss8 as dependency:
`sh`
yarn add postcss@8 @dtwo/postcss8or
npm i postcss@8 @dtwo/postcss8
Inside module:
`js``
export default async function() {
await this.addModule(require('@dtwo/postcss8'))
}