Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2JJ1 opened this issue Nov 28, 2019 · 1 comment
Open

Comments

@2JJ1
Copy link

2JJ1 commented Nov 28, 2019

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.

@am11
Copy link
Collaborator

am11 commented Nov 28, 2019

Couple of questions:

  • what is the URL in request?
  • what is the expected behavior?
  • what is the actual behavior?

please provide a runable example and steps to reproduce the undesired behavior (preferably a git repo or a zip file preserving the directory structure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants