File tree 3 files changed +17
-2
lines changed
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ module.exports = {
137
137
/ \. ( j s | j s x ) $ / ,
138
138
/ \. c s s $ / ,
139
139
/ \. j s o n $ / ,
140
- / \. s v g $ /
140
+ / \. s v g $ / ,
141
+ / \. m d $ /
141
142
] ,
142
143
loader : 'url-loader' ,
143
144
options : {
@@ -201,6 +202,12 @@ module.exports = {
201
202
options : {
202
203
name : 'static/media/[name].[hash:8].[ext]'
203
204
}
205
+ } ,
206
+ // Load Markdown files by converting them to JSON. It's then up to
207
+ // the consumer to render the result
208
+ {
209
+ test : / \. m d $ / ,
210
+ loader : 'markdown-with-front-matter-loader'
204
211
}
205
212
// ** STOP ** Are you adding a new loader?
206
213
// Remember to add the new extension(s) to the "url" loader exclusion list.
Original file line number Diff line number Diff line change @@ -144,7 +144,8 @@ module.exports = {
144
144
/ \. ( j s | j s x ) $ / ,
145
145
/ \. c s s $ / ,
146
146
/ \. j s o n $ / ,
147
- / \. s v g $ /
147
+ / \. s v g $ / ,
148
+ / \. m d $ /
148
149
] ,
149
150
loader : 'url-loader' ,
150
151
options : {
@@ -215,6 +216,12 @@ module.exports = {
215
216
options : {
216
217
name : 'static/media/[name].[hash:8].[ext]'
217
218
}
219
+ } ,
220
+ // Load Markdown files by converting them to JSON. It's then up to
221
+ // the consumer to render the result
222
+ {
223
+ test : / \. m d $ / ,
224
+ loader : 'markdown-with-front-matter-loader'
218
225
}
219
226
// ** STOP ** Are you adding a new loader?
220
227
// Remember to add the new extension(s) to the "url" loader exclusion list.
Original file line number Diff line number Diff line change 52
52
"html-webpack-plugin" : " 2.28.0" ,
53
53
"http-proxy-middleware" : " 0.17.3" ,
54
54
"jest" : " 18.1.0" ,
55
+ "markdown-with-front-matter-loader" : " ^0.1.0" ,
55
56
"object-assign" : " 4.1.1" ,
56
57
"postcss-loader" : " 1.2.2" ,
57
58
"promise" : " 7.1.1" ,
You can’t perform that action at this time.
0 commit comments