summaryrefslogtreecommitdiffstatshomepage
path: root/core/postcss.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/postcss.config.js')
-rw-r--r--core/postcss.config.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/postcss.config.js b/core/postcss.config.js
new file mode 100644
index 00000000000..e58d28ee4f2
--- /dev/null
+++ b/core/postcss.config.js
@@ -0,0 +1,20 @@
+module.exports = ctx => ({
+ map: !ctx.env || ctx.env !== 'production' ? { inline: false } : false,
+ plugins: [
+ require('postcss-custom-properties')({
+ preserve: false,
+ // Breaks style lint and unnecessary if preserve set to false.
+ // exportTo: 'dist-css/variables.css',
+ importFrom: [
+ './themes/claro/css/src/base/variables.css'
+ ]
+ }),
+ require("postcss-calc"),
+ require('autoprefixer')({
+ cascade: false
+ }),
+ require('postcss-header')({
+ header: `DO NOT EDIT THIS FILE.\nSee the following change record for more information,\nhttps://www.drupal.org/node/2815083\n@preserve`,
+ }),
+ ]
+});