From a22cabe949c59db38342e10acea9b1c596450e6d Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 15 Aug 2018 15:53:31 +0100 Subject: [PATCH] test: for postcss preset --- test/fixtures/extract-css/nuxt.config.js | 7 +++++++ test/fixtures/extract-css/pages/index.vue | 13 +++++++++++++ test/fixtures/with-config/nuxt.config.js | 10 ---------- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/test/fixtures/extract-css/nuxt.config.js b/test/fixtures/extract-css/nuxt.config.js index 83ff12306d..cda0a5b6a2 100644 --- a/test/fixtures/extract-css/nuxt.config.js +++ b/test/fixtures/extract-css/nuxt.config.js @@ -5,6 +5,13 @@ export default { splitChunks: { name: true } + }, + postcss: { + preset: { + autoprefixer: { + grid: true + } + } } }, css: [ diff --git a/test/fixtures/extract-css/pages/index.vue b/test/fixtures/extract-css/pages/index.vue index e4aef4e842..614cf27723 100644 --- a/test/fixtures/extract-css/pages/index.vue +++ b/test/fixtures/extract-css/pages/index.vue @@ -1,6 +1,13 @@ @@ -9,5 +16,11 @@ h1 { color: red; } + .container { + display: grid; + grid-template-columns: 60px 60px 60px 60px 60px; + grid-template-rows: 30px 30px; + grid-auto-flow: row; + } /* END OF INDEX CSS */ diff --git a/test/fixtures/with-config/nuxt.config.js b/test/fixtures/with-config/nuxt.config.js index 6afc93c0af..31d2f9c413 100644 --- a/test/fixtures/with-config/nuxt.config.js +++ b/test/fixtures/with-config/nuxt.config.js @@ -72,16 +72,6 @@ export default { return Object.assign({}, config, { devtool: 'nosources-source-map' }) - }, - postcss: { - preset: { - features: { - 'custom-selectors': true - }, - autoprefixer: { - grid: true - } - } } }, css: [{ src: '~/assets/app.css' }],