Answers for "vue scss global import"

CSS
0

vue global scss

module.exports = {
  css: {
    loaderOptions: {
      sass: {
        prependData: `
          @import "@/assets/scss/main.scss";
        `
      }
    }
  }
};
Posted by: Guest on October-06-2021
0

importing scss into vue component

<style lang="scss">
    @import 'sass/app.scss';
    html, body{
        margin: 0px;
        padding: 0px;
        background-color: $secondary-color;
    }
</style>
Posted by: Guest on February-24-2021

Browse Popular Code Answers by Language