Skip to content

Writing to response changes the path #119

@AxelMontini

Description

@AxelMontini

I'm using these settings (version 0.11.0)

app.use(
    sassMiddleware({
      src: path.resolve(path.join(__dirname, '..', 'assets', 'sass')),
      dest: path.resolve(path.join(__dirname, '..', 'public', 'css')),
      debug: false,
      indentedSyntax: true,
      force: false,
      response: false,
    })
);

And my compiled CSS is available under the path /css/style.css.

When I change response to true, I get a 404 error and instead my CSS becomes available at /style.css.

Path change when modifying this option is not documented anywhere, so it is indeed unwanted.

File structure:

├── assets
│   └── sass
│       └── style.sass
├── package.json
├── package-lock.json
└── src
    ├── ...
    └── server.js

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