1
1
mirror of https://github.com/primer/css.git synced 2024-10-05 21:07:46 +03:00
css/postcss.config.cjs
Kristján Oddsson 303cacae77
Convert package to a ES module (#1528)
* Set package as being a ES module package

* Set `engines` key to node versions that support ES modules

* Rename postcss config to a CommonJS extension

* Use import and export statements

* Import the default globby export

* Set stylelint config files as CommonJS files

* Convert prettier config to a CommonJS module

* Set a root ESLint config folder

* silence non-error output for dist

* export esm for stats modules

* Convert bundle size report

* Create strong-lemons-ring.md

Co-authored-by: Jon Rohan <yes@jonrohan.codes>
2021-08-11 14:10:47 -07:00

17 lines
318 B
JavaScript

const path = require('path')
module.exports = {
parser: 'postcss-scss',
map: {
sourcesContent: true,
annotation: true
},
plugins: [
require('postcss-node-sass')({
includePaths: [path.join(__dirname, 'node_modules')],
outputStyle: 'compressed'
}),
require('autoprefixer')
]
}