-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpostcss.config.js
More file actions
25 lines (23 loc) · 667 Bytes
/
postcss.config.js
File metadata and controls
25 lines (23 loc) · 667 Bytes
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
const pkg = require('./package.json');
const currentYear = (new Date()).getFullYear();
const releaseYear = 2022;
const bannerData = [
`${pkg.name}`,
`v${pkg.version}`,
`${pkg.homepage}`,
`(c) ${releaseYear}${currentYear === releaseYear ? '' : '-' + currentYear} ${pkg.author}`,
`${pkg.license} license`
].join('\n');
module.exports = {
map: 'inline',
plugins: [
require('postcss-import')({
filter: url => /\.\.|\.user\./.test(url) === false
}),
require('postcss-discard-comments')(),
require('postcss-banner')({
banner: bannerData,
important: true
}),
],
}