mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
No extension needed to import vue files
This commit is contained in:
parent
5b3dc23cd3
commit
ca7d8bc3a8
@ -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 {
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user