aboutsummaryrefslogtreecommitdiff
path: root/vnext/postcss.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/postcss.config.js')
-rw-r--r--vnext/postcss.config.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/vnext/postcss.config.js b/vnext/postcss.config.js
new file mode 100644
index 00000000..3e7b2675
--- /dev/null
+++ b/vnext/postcss.config.js
@@ -0,0 +1,15 @@
+module.exports = (ctx) => {
+ const production = ctx.env === 'production';
+ const config = {
+ map: production ? false : ctx.options.map,
+ plugins: {
+ 'autoprefixer': { grid: true },
+ 'stylelint': production ? false : {},
+ 'postcss-import': {},
+ 'postcss-preset-env': { stage: 0 },
+ 'cssnano': production ? { preset: 'default' } : false,
+ },
+ };
+ return config;
+};
+