mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
test: for postcss preset
This commit is contained in:
parent
128dcbe266
commit
a22cabe949
7
test/fixtures/extract-css/nuxt.config.js
vendored
7
test/fixtures/extract-css/nuxt.config.js
vendored
@ -5,6 +5,13 @@ export default {
|
||||
splitChunks: {
|
||||
name: true
|
||||
}
|
||||
},
|
||||
postcss: {
|
||||
preset: {
|
||||
autoprefixer: {
|
||||
grid: true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
css: [
|
||||
|
13
test/fixtures/extract-css/pages/index.vue
vendored
13
test/fixtures/extract-css/pages/index.vue
vendored
@ -1,6 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>I'm RED</h1>
|
||||
<section class="container">
|
||||
<div class="item-a">item-a</div>
|
||||
<div class="item-b">item-b</div>
|
||||
<div class="item-c">item-c</div>
|
||||
<div class="item-d">item-d</div>
|
||||
<div class="item-e">item-e</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -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 */
|
||||
</style>
|
||||
|
10
test/fixtures/with-config/nuxt.config.js
vendored
10
test/fixtures/with-config/nuxt.config.js
vendored
@ -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' }],
|
||||
|
Loading…
Reference in New Issue
Block a user