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

Issue with WordPress header comment section for the main stylesheet #1256

Open
wites opened this issue Aug 16, 2023 · 0 comments
Open

Issue with WordPress header comment section for the main stylesheet #1256

wites opened this issue Aug 16, 2023 · 0 comments

Comments

@wites
Copy link

wites commented Aug 16, 2023

Environment

  • clean-css version - ^4.3.0:
  • node.js version - v18.8.0:
  • operating system: Zorin OS

Configuration options

gulp.task('styles', () => {
  return gulp.src('stylus/style.styl')
    .pipe(stylus())
    .pipe(postcss([autoprefixer({ cascade: false })]))
    .pipe(cleanCSS({
      compatibility: '*',
      level: {
        1: {
          specialComments: 'all',
        }
      }
    }))
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('xxx'))
    .pipe(browserSync.stream());
});

Input CSS

/*!
* Theme Name: xxx
* Theme URI: 
* Author: xxxw
* Description: Description
* Version: 1.1.0
* License: GNU General Public License v2 or later
* License URI: LICENSE
* Text Domain: xxx
* Tags: custom-background, custom-logo, custom-menu, featured-images
*/

Actual output CSS

normal css output without the special header needed by the main stylesheet

Expected output CSS

it should output the WordPress header comment 
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

1 participant