feat(test): add extraxt-css fixture

This commit is contained in:
Pooya Parsa 2018-03-24 12:31:57 +04:30
parent a91e6fa0db
commit 13bae199ab
4 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,11 @@
/* GLOBAL CSS */
body {
background-color: rgb(28, 28, 28);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* END OF GLOBAL CSS */

View File

@ -0,0 +1,15 @@
<template>
<main>
<nuxt/>
</main>
</template>
<style scoped>
/* LAYOUT CSS */
main {
border: 1px solid grey;
border-radius: 8px;
padding: 2rem;
}
/* END OF LAYOUT CSS */
</style>

View File

@ -0,0 +1,13 @@
export default {
build: {
extractCSS: true,
optimization: {
splitChunks: {
name: true
}
}
},
css: [
'~/assets/global.css'
]
}

View File

@ -0,0 +1,13 @@
<template>
<div>
<h1>I'm RED</h1>
</div>
</template>
<style scoped>
/* INDEX CSS */
h1 {
color: red;
}
/* END OF INDEX CSS */
</style>