Static GitHub Issues

[3293] How to import scss file without specify extension in nuxt inside vue template file?

prev: Add a hook which is passed context for testing the state data passed from server to client
next: How to hide xhr finished loading after get data axios?

For instance, I have tried to do the following

<template>
  <h1>Hello world!</h1>
</template>

<style lang="scss">
@import '@/styles/coride/custom-mixins';
  * {
    @include font-prompt;
  }
</style>

But it failed to compile unless I specify the extension of the scss file like @import '@/styles/coride/custom-mixins.scss'

Because I am converting a VueJS application to NuxtJS, in the VueJS application, I don't need to specify the extension. So it will be quite tedious to convert all those files. It will be great if I can do the same with VueJS in NuxtJS.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c7013">#c7013</a>)</em></sub></div>