@ampersandhq/postcss
v0.1.0
Published
Shared configuration for Ampersand HQ projects using Postcss.
Downloads
105
Maintainers
Keywords
Readme
@ampersandhq/postcss
Shared configuration for Ampersand HQ projects using Postcss.
Installation
yarn add -D @ampersandhq/postcss postcss
PWA Studio Specific Configuration
Install postcss-loader
for appropriate version of webpack
Webpack 4
yarn add -D postcss-loader@^4
Webpack 5 (if available)
yarn add -D postcss-loader
In an interceptor file, configure PostCSS
compiler.options.module.rules
.find(rule => rule.test.toString() === '/\\.css$/')
.oneOf[0].use.push('postcss-loader');