Skip to content

Commit

Permalink
remove: 🚮 Removed postcss-import-ext-glob from project until issue #1 …
Browse files Browse the repository at this point in the history
…is resolved
  • Loading branch information
Frank Stallone committed Feb 14, 2024
1 parent 3560868 commit 08e0e50
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 49 deletions.
36 changes: 0 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"@astrojs/check": "^0.5.3",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.3.6",
"postcss-import": "^16.0.0",
"postcss-import-ext-glob": "^2.1.1",
"slugify": "^1.6.6",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3"
Expand Down
2 changes: 0 additions & 2 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module.exports = {
plugins: [
require('postcss-import-ext-glob'),
require('postcss-import'),
require('tailwindcss')
]
};
11 changes: 2 additions & 9 deletions src/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@
@import 'global/variables.css';
@import 'global/global-styles.css';
/*
Cannot get the @import-glob to work. Complains about the order, then when you get the order right, it doesn't include any of the files.
[WARN] [vite] [vite:css] @import must precede all other statements (besides @charset or empty @layer)
11 | @import-glob 'blocks/*.css';
12 | @import-glob 'components/*.css';
13 | @import-glob 'utilities/*.css';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 |
15 | @import 'tailwindcss/utilities';
See issue: https://github.com/frankstallone/astro-cube-boilerplate/issues/1
Reference source: https://github.com/Set-Creative-Studio/cube-boilerplate/blob/main/src/css/global.css#L11
@import-glob 'blocks/*.css';
@import-glob 'components/*.css';
Expand Down

0 comments on commit 08e0e50

Please sign in to comment.