Skip to content

处理 vue 文件的 template、style、script 标签使用预处理器时产生的问题 #9

Closed
@Dafrok

Description

@Dafrok

现象

当 vue 文件的 template、style、script 标签使用 lang 属性时,fecs-loader 不能正确地处理预处语言的语法。

源码

<template lang="pug">
div
    span foo
</template>

<style lang="stylus">
body
    margin 0
</style>

错误信息

fecs  WARN → line 3, col 1: Line should indent with 4 spaces.
fecs  WARN → line 8, col 1: CssSyntaxError: <css input>:3:1: Unknown word

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions