Skip to content

Commit fdf55d7

Browse files
committed
Update styleguide.config.js
somewhat working config, changes maybe necessary
1 parent 8687579 commit fdf55d7

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

Diff for: styleguide.config.js

+34-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const webpack = require('webpack');
33
const dotenv = require('dotenv').config({ path: __dirname + '/.env' });
44
module.exports = {
55
pagePerSection: true,
6-
title: 'UTD Trends Style Guide',
6+
title: 'UTD Trends Documentation',
77
template: {
88
links: [
99
{
@@ -30,11 +30,27 @@ module.exports = {
3030
name: 'Navigation Components',
3131
components: ['./src/components/navigation/**/*.tsx'],
3232
},
33+
{
34+
name: 'Dashboard Components',
35+
components: ['./src/components/dashboard/**/*.tsx'],
36+
},
37+
{
38+
name: 'Overview Components',
39+
components: ['./src/components/overview/**/*.tsx'],
40+
},
41+
{
42+
name: 'Search Components',
43+
components: ['./src/components/search/**/*.tsx'],
44+
},
3345
{
3446
name: 'Graph Components',
3547
content: './src/components/graph/GraphProps.md',
3648
components: ['./src/components/graph/**/*.tsx'],
3749
},
50+
{
51+
name: 'Compare Components',
52+
components: ['./src/components/compare/**/*.tsx'],
53+
},
3854
{
3955
name: 'Icon Components',
4056
components: ['./src/components/icons/**/*.tsx'],
@@ -47,6 +63,16 @@ module.exports = {
4763
path.join(__dirname, './src/styles/globals.css'),
4864
],
4965
webpackConfig: {
66+
resolve: {
67+
alias: {
68+
'@': path.resolve(__dirname, 'src'),
69+
},
70+
fallback: {
71+
zlib: false,
72+
stream: false,
73+
fs: false,
74+
},
75+
},
5076
plugins: [
5177
new webpack.DefinePlugin({
5278
'process.env': JSON.stringify(dotenv.parsed),
@@ -93,6 +119,13 @@ module.exports = {
93119
},
94120
],
95121
},
122+
{
123+
test: /\.(png|jpe?g|gif|svg|woff|woff2|eot|ttf|otf)$/,
124+
type: 'asset/resource',
125+
generator: {
126+
filename: 'assets/[name][ext]', // Outputs assets into a specific folder
127+
},
128+
},
96129
],
97130
},
98131
},

0 commit comments

Comments
 (0)