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> </template>
<script> <script>
import Post from '~components/post.vue' import Post from '~components/post'
import vP from '~components/paragraph.vue' import vP from '~components/paragraph'
const vHr = { render: (h) => h('hr', { class: 'hr' }) } const vHr = { render: (h) => h('hr', { class: 'hr' }) }
export default { export default {

View File

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