Skip to content

Pre-existing files in the destination assumes there is a source file for it #131

Open
@2JJ1

Description

My code:

app.use(sassMiddleware({
	src: path.join(__dirname, 'sass'),
	dest: path.join(__dirname, 'static'),
	debug: true,
	outputStyle: 'compressed',
	force: true,
	prefix: '/assets/css'
}));

Output:

source: ...project\sass\reset.scss
dest: ...project\static\reset.css
read: ...project\sass\reset.scss
skip: ...project\sass\reset.scss does not exist

I don't have a file named "reset.scss" in /sass/reset.css. How ever, I do already have a file named "reset.css" in /static/assets/css. For some reason, if there's a pre-existing file in the destination directory, it seems to assume there's a source file with a similar directory. I don't like this functionality. Is there an option to disable it? I have css files in the destination path that did not come from the middleware.

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