Nuxt/examples/custom-build/pages/index.vue

27 lines
589 B
Vue
Raw Normal View History

<template>
<div class="container">
2016-11-16 16:55:15 +00:00
<p><img src="~assets/nuxt.png" /></p>
<p>This image is included as data:image/png;base64...</p>
<p>In the source code, the files generated are based on the build.filenames data.</p>
<p>If you look at the <a href="/_nuxt/vendor.js">vendor.js</a>, lodash has been included (cmd/ctrl + F "lodash").</p>
</div>
</template>
<script>
import img from '@/assets/nuxt.png'
export default {
mounted() {
console.log('Teub', img)
}
}
</script>
<style>
.container {
font-size: 20px;
text-align: center;
padding: 100px;
}
</style>