Skip to content

Instantly share code, notes, and snippets.

@Astray-git
Last active April 1, 2016 06:24
Show Gist options
  • Save Astray-git/f76bc99cede942bd381fb454effa9099 to your computer and use it in GitHub Desktop.
Save Astray-git/f76bc99cede942bd381fb454effa9099 to your computer and use it in GitHub Desktop.
test vue webpack build minifyCSS
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<table>
<thead>
<tr>
<th
:style="[
column.styles,
{ width: column.width }
]">
{{msg}}
</th>
</tr>
</thead>
</table>
</div>
</template>
<script>
export default {
data () {
return {
// note: changing this line won't causes changes
// with hot-reload because the reloaded component
// preserves its current state and we are modifying
// its initial state.
msg: 'Hello World!',
column: {
width: '10px',
styles: {
textAlign: 'center'
}
}
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment