@@ -3,7 +3,7 @@ const webpack = require('webpack');
3
3
const dotenv = require ( 'dotenv' ) . config ( { path : __dirname + '/.env' } ) ;
4
4
module . exports = {
5
5
pagePerSection : true ,
6
- title : 'UTD Trends Style Guide ' ,
6
+ title : 'UTD Trends Documentation ' ,
7
7
template : {
8
8
links : [
9
9
{
@@ -30,11 +30,27 @@ module.exports = {
30
30
name : 'Navigation Components' ,
31
31
components : [ './src/components/navigation/**/*.tsx' ] ,
32
32
} ,
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
+ } ,
33
45
{
34
46
name : 'Graph Components' ,
35
47
content : './src/components/graph/GraphProps.md' ,
36
48
components : [ './src/components/graph/**/*.tsx' ] ,
37
49
} ,
50
+ {
51
+ name : 'Compare Components' ,
52
+ components : [ './src/components/compare/**/*.tsx' ] ,
53
+ } ,
38
54
{
39
55
name : 'Icon Components' ,
40
56
components : [ './src/components/icons/**/*.tsx' ] ,
@@ -47,6 +63,16 @@ module.exports = {
47
63
path . join ( __dirname , './src/styles/globals.css' ) ,
48
64
] ,
49
65
webpackConfig : {
66
+ resolve : {
67
+ alias : {
68
+ '@' : path . resolve ( __dirname , 'src' ) ,
69
+ } ,
70
+ fallback : {
71
+ zlib : false ,
72
+ stream : false ,
73
+ fs : false ,
74
+ } ,
75
+ } ,
50
76
plugins : [
51
77
new webpack . DefinePlugin ( {
52
78
'process.env' : JSON . stringify ( dotenv . parsed ) ,
@@ -93,6 +119,13 @@ module.exports = {
93
119
} ,
94
120
] ,
95
121
} ,
122
+ {
123
+ test : / \. ( p n g | j p e ? g | g i f | s v g | w o f f | w o f f 2 | e o t | t t f | o t f ) $ / ,
124
+ type : 'asset/resource' ,
125
+ generator : {
126
+ filename : 'assets/[name][ext]' , // Outputs assets into a specific folder
127
+ } ,
128
+ } ,
96
129
] ,
97
130
} ,
98
131
} ,
0 commit comments