-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.js
More file actions
27 lines (22 loc) · 758 Bytes
/
postcss.config.js
File metadata and controls
27 lines (22 loc) · 758 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
let environment = {
plugins: [
require('postcss-import'),
// https://github.com/postcss/postcss-nested
// Next CSS like SCSS days
require('postcss-nested'),
// https://github.com/postcss/postcss-custom-properties
// Add fallbacks when we use CSS variables
require('postcss-custom-properties'),
// https://github.com/TrySound/postcss-inline-svg
// Inline SVGs:
// background: svg-load('img/arrow-up.svg', fill=#000, stroke=#fff);
require('postcss-inline-svg'),
]
}
// Only add these in production as they slow down the dev build time a bunch.
if (process.env.BRIDGETOWN_ENV === "production") {
environment.plugins.push(
require('cssnano')({ preset: 'default' }),
)
};
module.exports = environment;