-
Notifications
You must be signed in to change notification settings - Fork 2
/
postcss.config.js
32 lines (31 loc) · 1016 Bytes
/
postcss.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const path = require('path');
module.exports = {
plugins: {
'postcss-import': {
/**
* @typedef ImportOptions
* @property {string} root
* @property {string[]} path
* @property {boolean} skipDuplicates
* @property {Function} resolve
* @property {Function} load
* @property {Array} plugins
* @property {Array} addModulesDirectores
* @property {boolean} warnOnEmpty
*
* @param {string} id
* @param {string} basedir
* @param {ImportOptions} importOptions
*/
resolve(id, basedir, { resolve }) {
const p = id.endsWith('.css') ? id : `${id}.css`;
if (p.startsWith('.')) {
return path.resolve(basedir, p);
}
return require.resolve(p);
},
},
tailwindcss: {},
autoprefixer: {},
},
};