【问题标题】:You may need an additional loader to handle the result of these loaders您可能需要额外的加载器来处理这些加载器的结果
【发布时间】:2020-04-05 01:19:03
【问题描述】:

我试图编译一些 css 并且发生了这种情况。

使用 laravel 混合器时,我的控制台中会出现以下内容:

You may need an additional loader to handle the result of these loaders.

    |
    |
    > .contacts-list{
    |   flex: 2;
    |   max-height: 600px;

这是我的编辑器中的 css:

<style lang="sccs" scoped>
      .contacts-list{
        flex: 2;
        max-height: 600px;
        overflow: scroll;
        border-left: 1px solid #a6a6a6;
      }
      ul{
        list-style-type: none;
        padding-left: 0;
      }
    </style>

【问题讨论】:

  • 你有一个错字:sccs

标签: laravel git vue.js atom-editor laravel-mix


【解决方案1】:

您的语言定义标签中似乎有错误。 应该是scss。 你可以发送你的 webpack.config.js 吗?

您必须有一个加载器来管理 scss 文件类型,例如:

{ test: /\.scss$/, loaders: [ 'style', 'css', 'sass' ] },

在你的模块规则中

您可以在此处找到更多信息: vue-cli

【讨论】:

    猜你喜欢
    • 2020-12-04
    • 1970-01-01
    • 2020-09-12
    • 1970-01-01
    • 1970-01-01
    • 2022-11-06
    • 2021-08-05
    • 1970-01-01
    • 2022-11-10
    相关资源
    最近更新 更多