Skip to content

Commit

Permalink
- try to get tailwind to work with scss
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Apr 3, 2024
1 parent b747fd3 commit 5aa1c32
Show file tree
Hide file tree
Showing 9 changed files with 201 additions and 94 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ artifacts
# build/release artifacts
build/
build-module/
build-style/
wpgraphql-ide/
wpgraphql-ide.zip
/test-results/
Expand Down
6 changes: 3 additions & 3 deletions bin/packages/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function createStyleEntryTransform() {
objectMode: true,
async transform( file, encoding, callback ) {
// Only stylesheets are subject to this transform.
if ( path.extname( file ) !== '.css' ) {
if ( path.extname( file ) !== '.scss' ) {
this.push( file );
callback();
return;
Expand All @@ -125,7 +125,7 @@ function createStyleEntryTransform() {
packages.add( packageName );
const entries = await glob(
path
.resolve( PACKAGES_DIR, packageName, 'src/*.css' )
.resolve( PACKAGES_DIR, packageName, 'src/*.scss' )
.replace( /\\/g, '/' )
);

Expand Down Expand Up @@ -223,7 +223,7 @@ if ( files.length ) {
[
`${ PACKAGES_DIR }/*/src/**/*.{js,jsx,ts,tsx}`,
`${ PACKAGES_DIR }/*/src/**/**/*.{js,jsx,ts,tsx}`,
`${ PACKAGES_DIR }/*/src/*.css`,
`${ PACKAGES_DIR }/*/src/*.scss`,
],
{
ignore: [
Expand Down
Loading

0 comments on commit 5aa1c32

Please sign in to comment.