Skip to content

debug cannot working when i use "[]" ? #312

@KangdaOOLin

Description

@KangdaOOLin

the question is : when i use the code below

process.env.DEBUG = '[webpack:dev]'
const debug = require('debug')(process.env.DEBUG)
debug('start')

it doesn't work, because process.env.DEBUG has '[]' character. when i use the code below:

process.env.DEBUG = 'webpack:dev'

it does work well!
so, if i want to use '[]', what should i do ?

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