uswds / uswds-compile

Simple Gulp 4 functions for copying USWDS static assets and transforming USWDS Sass into browser-readable CSS.
Other
21 stars 12 forks source link

USWDS-Compile - Bug: uswds-compile stopped compiling CSS #95

Closed ryandwalker closed 4 months ago

ryandwalker commented 4 months ago

Describe the bug

In the past week, uswds-compile stopped working. My CSS no longer reflects any changes to my SCSS after I run npx gulp compile. The last-updated date on the CSS file changes, but its contents do not change.

Just now I upgraded from uswds-compile 1.0 to 1.1.0, but this did not resolve the problem.

The uswds-compile package was working without incident for three months prior to this issue.

Steps to reproduce the bug

Run npx gulp compile and inspect the CSS for changes. It does not reflect the changes made in my SCSS file.

Expected Behavior

I expect the CSS to reflect the changes to my SCSS after I compile.

Related code

No response

Screenshots

No response

System setup

"@uswds/compile": "^1.1.0"

"@uswds/uswds": "3.7.0"

The web server is IIS.

Additional context

No response

Code of Conduct

ryandwalker commented 4 months ago

I upgraded to USWDS 3.8.0 just now but this did not resolve the issue.

mejiaj commented 4 months ago

Hey @ryandwalker, sorry to hear about the issues. To help debug this, would you be able to provide:

  1. The version of Node you're using (via node -v)
  2. A sample of your gulpfile
  3. Are you seeing any log errors or messages in general when running the task?
  4. To confirm, do you run the npx gulp compile command in powershell on your windows machine?

Admittedly, it's been a while since I've worked on a windows machine — but if you can provide more information that will help us out a lot.

ryandwalker commented 4 months ago

$ node -v v20.2.0

gulpfile.js:

/ gulpfile.js /

const uswds = require("@uswds/compile");

/**

uswds.settings.version = 3;

/**

uswds.paths.dist.css = './css'; uswds.paths.dist.theme = './sass';

/**

exports.init = uswds.init; exports.compile = uswds.compile; exports.watch = uswds.watch;

I see no errors. Please see attached gulp-compile-output.txt. gulp-compile-output.txt

I use Git Bash in Windows Terminal: https://apps.microsoft.com/detail/9n0dx20hk701?hl=en-US&gl=US

ryandwalker commented 4 months ago

I am no longer sure there is any problem with the compiling. I think I might be facing some other issue. I'm going to close this bug report for now.