-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,942 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,40 @@ | ||
module.exports = { | ||
const withSass = require("@zeit/next-sass"); | ||
const tailwindCss = require("tailwindcss"); | ||
|
||
module.exports = withSass({ | ||
publicRuntimeConfig: { | ||
localeSubpaths: typeof process.env.LOCALE_SUBPATHS === 'string' | ||
? process.env.LOCALE_SUBPATHS | ||
: 'none', | ||
localeSubpaths: typeof process.env.LOCALE_SUBPATHS === 'string' ? | ||
process.env.LOCALE_SUBPATHS : 'none', | ||
}, | ||
}; | ||
webpack(config, options) { | ||
const rules = [{ | ||
test: /\.scss$/, | ||
use: [{ | ||
loader: "postcss-loader", | ||
options: { | ||
ident: "postcss", | ||
plugins: [ | ||
require('tailwindcss'), | ||
require('autoprefixer'), | ||
] | ||
} | ||
}, | ||
{ loader: "sass-loader" } | ||
] | ||
}]; | ||
return { | ||
...config, | ||
module: { | ||
...config.module, | ||
rules: [...config.module.rules, ...rules] | ||
} | ||
}; | ||
}}); | ||
|
||
// module.exports = { | ||
// publicRuntimeConfig: { | ||
// localeSubpaths: typeof process.env.LOCALE_SUBPATHS === 'string' | ||
// ? process.env.LOCALE_SUBPATHS | ||
// : 'none', | ||
// }, | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
...(process.env.NODE_ENV === 'production' | ||
? { | ||
'@fullhuman/postcss-purgecss': { | ||
content: [ | ||
'./components/**/*.js', | ||
'./pages/**/*.js' | ||
], | ||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [] | ||
} | ||
} | ||
: {}) | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* purgecss start ignore */ | ||
@tailwind base; | ||
@tailwind components; | ||
/* purgecss end ignore */ | ||
|
||
|
||
$bg-color: #212121; | ||
$container-color: #f4f4f4; | ||
$primary-color: #000000; | ||
$accent-color: #F68E20; | ||
|
||
$h1: 30px; | ||
|
||
body { | ||
color: $primary-color; | ||
background-color: $bg-color; | ||
} | ||
|
||
.test{ | ||
font-size: $h1; | ||
color: $accent-color; | ||
} | ||
|
||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
purge: ['./components/**/*.js', './pages/**/*.js'], | ||
theme: { | ||
extend: {}, | ||
}, | ||
variants: {}, | ||
plugins: [], | ||
} |
Oops, something went wrong.