-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.postcss.js
More file actions
41 lines (41 loc) · 1.34 KB
/
webpack.config.postcss.js
File metadata and controls
41 lines (41 loc) · 1.34 KB
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
40
41
module.exports = [
require('postcss-map')({
basePath: 'src/',
maps: ['_variables/colors.yml', '_variables/fonts.yml']
}),
require('postcss-assets'),
require('postcss-import')({
root: 'src'
}),
require('postcss-nested-ancestors'),
require('postcss-nested'),
require('postcss-custom-properties')({
preserve: false,
importFrom: 'src/'
}),
require('postcss-calc'),
require('postcss-color-function'),
require('postcss-custom-media')({
importFrom: {
customMedia: {
'--screen-xs': 'screen and (max-width: 19.99rem)',
'--screen-sm':
'screen and (min-width: 20rem) and (max-width: 39.99rem)',
'--screen-md':
'screen and (min-width: 40rem) and (max-width: 83.99rem)',
'--screen-lg': 'screen and (min-width: 84rem)',
'--screen-md-to-lg': 'screen and (min-width: 40rem)',
'--screen-xs-to-md': 'screen and (max-width: 83.99rem)',
'--screen-xs-to-sm': 'screen and (max-width: 39.99rem)'
}
}
}),
require('postcss-mq-optimize'),
require('postcss-pxtorem')({
rootValue: 16,
replace: false,
mediaQuery: true
}),
require('postcss-focus'),
require('autoprefixer')
];