Skip to content

Commit

Permalink
fixed build errors, tailwind css needs to be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos committed Jan 23, 2024
1 parent 7ab1a3d commit e6a9e84
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const tailwindcss = require('tailwindcss');
module.exports = {
plugins: [
'postcss-preset-env',
tailwindcss
],
};
3 changes: 2 additions & 1 deletion src/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* Base Styles*/

@import "tailwindcss/base";
@import 'typography';

Expand All @@ -26,3 +25,5 @@

/* Utilities*/
@import "tailwindcss/utilities";


6 changes: 3 additions & 3 deletions src/styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@tailwindcss base;
@tailwindcss components;
@tailwindcss utilities;
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const { colors } = require('tailwindcss/defaultTheme')
// 63 101 127 other #3F657F dark blue

module.exports = {
content: ['./_site/*.html'],
theme: {
colors: {
primary: {
Expand Down
2 changes: 1 addition & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ module.exports = {
{
ident: 'postcss',
plugins: [
require('postcss-import'),
require('tailwindcss')('tailwind.config.js'),
require('postcss-import'),
require('postcss-preset-env'),
// require('cssnano'),
],
Expand Down

0 comments on commit e6a9e84

Please sign in to comment.