如何为vuejs添加scss支持

时间:2018-01-05 16:44:00

标签: webpack vuejs2 vue-material

我正在尝试使用vue-material,但在documentation中,它只是在Pre-Processors上阅读,我尝试了预处理器页面上的所有内容,无法修复我的问题。错误:

scss部分是:

<style lang="scss" scoped>
  @import "~vue-material/components/MdAnimation/variables";
  @import "~vue-material/theme/engine";

  .md-layout-item {
    height: 40px;
    margin-top: 8px;
    margin-bottom: 8px;
    transition: .3s $md-transition-stand-timing;

    &:after {
      width: 100%;
      height: 100%;
      display: block;
      background: md-get-palette-color(purple, 200);
      content: " ";
    }
  }
</style>

错误是:

Module build failed: 
  @import "~vue-material/components/MdAnimation/variables";
^
      File to import not found or unreadable: ~vue-material/components/MdAnimation/variables.

0 个答案:

没有答案
相关问题