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