-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpostcss.config.js
More file actions
27 lines (26 loc) · 880 Bytes
/
postcss.config.js
File metadata and controls
27 lines (26 loc) · 880 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
const postcssFunctions = require( './wp-content/themes/core/assets/library/theme/pcss/functions' );
const pkg = require( './package.json' );
module.exports = ( { file, options, env } = {} ) => ( { // eslint-disable-line no-unused-vars
plugins: {
'postcss-import-ext-glob': { sort: 'asc' },
'postcss-import': {
path: [
`./${ pkg.square1.paths.core_theme }`,
],
},
'postcss-mixins': {},
'postcss-custom-properties': { preserve: false },
'postcss-simple-vars': {},
'postcss-custom-media': {},
'postcss-functions': { functions: postcssFunctions },
'postcss-quantity-queries': {},
'postcss-aspect-ratio': {},
'postcss-nested': {},
'postcss-inline-svg': {},
'postcss-preset-env': { stage: 0, autoprefixer: { grid: true } },
'postcss-calc': {},
'postcss-assets': {
baseUrl: pkg.square1.paths.core_theme_postcss_assets_base_url,
},
},
} );