Broke out into .vue files and did a bunch of stupid shit to
parent
fdacfdec9f
commit
11602a3761
@ -1,8 +1,21 @@
|
|||||||
const base = require('./webpack.base.config')
|
const base = require('./webpack.base.config')
|
||||||
|
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
||||||
|
|
||||||
//extends the base config object and include the new property plugins
|
//extends the base config object and include the new property plugins
|
||||||
const config = Object.assign({}, base, {
|
const config = Object.assign({}, base, {
|
||||||
plugins: base.plugins || []
|
plugins: base.plugins || []
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// We are using this because base config will be used for server side rendering
|
||||||
|
// but we don't need to extractCSS in that process only in our dev process
|
||||||
|
|
||||||
|
config.module.rules
|
||||||
|
.filter(x => { return x.loader == 'vue-loader'})
|
||||||
|
.forEach( x=> x.options.extractCSS = true)
|
||||||
|
|
||||||
|
config.plugins.push(
|
||||||
|
// This plugin accepts the file in which we want to save our styles
|
||||||
|
new ExtractTextPlugin('assets/styles.css')
|
||||||
|
)
|
||||||
|
|
||||||
module.exports = config
|
module.exports = config
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
<template>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-content">
|
||||||
|
<slot name="title"></slot>
|
||||||
|
<slot name="content"></slot>
|
||||||
|
</div>
|
||||||
|
<footer class="card-footer">
|
||||||
|
<slot name="link"></slot>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: ['post']
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.card {
|
||||||
|
padding-bottom: 40px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in New Issue