Skip to content

could filename be shorter #1

@javaxiu

Description

@javaxiu

after preprocessor does, FILE could looks like /Users/xxxx/workspace/foo/src/somefilename, but it was too long though, src/somefilename or even somefilename would be enough.

so i think is that possable to write pprocessor-loader.json file like this

"macros": [
    {
      "declaration" : "LOG_INFO(message)",
      "definition" : "console.log(message + ' (__FILE__:__LINE__)');",
      "REG": "/(src:?)(.*)/"
    },
]

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions