forked from IntellectionStudio/intellection.kz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.js
More file actions
39 lines (38 loc) · 1023 Bytes
/
Copy pathpostcss.config.js
File metadata and controls
39 lines (38 loc) · 1023 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const path = require('path')
module.exports = config => [
require('stylelint')({
ignoreFiles: 'node_modules/**/*.(css|scss)',
extends: 'stylelint-config-standard',
rules: {
"max-empty-lines": 2,
"property-no-unknown": [
true,
{
"ignoreProperties": ["composes"]
}
],
"declaration-colon-newline-after": null
},
}),
require('postcss-cssnext')({
browsers: 'last 2 versions',
features: {
customProperties: {
variables: {
maxWidth: '60rem',
colorPrimary: '#51a9f2',
colorPrimaryLight: '#badbfa',
colorPrimaryDark: '#107491',
colorSecondaryDark: '#22846C',
colorSecondary: '#46BE77',
colorNeutralDark: '#111',
colorNeutral: '#8C8D91',
colorNeutralLight: '#FBFCFC',
colorText: '#555',
},
},
},
}),
require('postcss-reporter')(),
...(!config.production ? [require('postcss-browser-reporter')()] : []),
];