Skip to content

PostCSS does not create output directory #7

@andismith

Description

@andismith

I'm using postcss-cli (and autoprefixer) with the command:

postcss --use autoprefixer src/css/*.css --dir dist/css --map --local-plugins

But it is failing with a ENOENT error as the output directory dist/css does not exist (it has been cleaned as part of the build). The input directory src/css/ does exist. Full error below:

{ [Error: ENOENT: no such file or directory, open 'dist/css/main.css'] errno: -2, code: 'ENOENT', syscall: 'open', path: 'dist/css/main.css' }

Is there a way I can get postcss to create this directory before it tries to write to it?

I'm using v2.5.1

Thanks

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