No extension needed to import vue files

This commit is contained in:
Sébastien Chopin 2016-12-12 15:01:57 +01:00
parent 5b3dc23cd3
commit ca7d8bc3a8
2 changed files with 3 additions and 2 deletions

View File

@ -22,8 +22,8 @@
</template>
<script>
import Post from '~components/post.vue'
import vP from '~components/paragraph.vue'
import Post from '~components/post'
import vP from '~components/paragraph'
const vHr = { render: (h) => h('hr', { class: 'hr' }) }
export default {

View File

@ -24,6 +24,7 @@ module.exports = function () {
publicPath: urlJoin(this.options.router.base, '/_nuxt/')
},
resolve: {
extensions: ['.js', '.vue'],
// Disable for now
alias: {
'~': join(this.srcDir),