Skip to content

Commit

Permalink
theme switch (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Dec 16, 2022
1 parent be8c6e3 commit f4ff039
Show file tree
Hide file tree
Showing 12 changed files with 633 additions and 157 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
"sourceType": "module"
},
"rules": {
"react/react-in-jsx-scope": "off"
"react/react-in-jsx-scope": "off",
"react/no-children-prop": [
"on",
{
"allowFunctions": true
}
]
},
"ignorePatterns": ["build/**"]
}
15 changes: 15 additions & 0 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ async function runWebpack(callback) {
},
],
},
{
test: /\.s[ac]ss$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
importLoaders: 1,
},
},
{
loader: 'sass-loader',
},
],
},
{
test: /\.less$/,
use: [
Expand Down

0 comments on commit f4ff039

Please sign in to comment.