@@ -187,26 +187,26 @@ The `skipInterpolation` field in the metadata file should be a [minimatch glob p
187
187
188
188
You may customize the metalsmith builder created by vue-cli to register custom plugins.
189
189
190
- ``` javascript
190
+ ``` js
191
191
{
192
- " metalsmith " : function (metalsmith , opts , helpers ) {
193
- function customMetalsmithPlugin (files , metalsmith , done ) {
192
+ " metalsmith " : function (metalsmith , opts , helpers ) {
193
+ function customMetalsmithPlugin (files , metalsmith , done ) {
194
194
// Implement something really custom here.
195
- done (null , files);
195
+ done (null , files)
196
196
}
197
197
198
- metalsmith .use (customMetalsmithPlugin);
198
+ metalsmith .use (customMetalsmithPlugin)
199
199
}
200
200
}
201
201
```
202
202
203
203
If you need your to hook metalsmith before questions are asked, you may use an object with ` before ` /` after ` keys
204
204
205
- ``` javascript
205
+ ``` js
206
206
{
207
207
" metalsmith" : {
208
- before : function (metalsmith , opts , helpers ) {},
209
- after : function (metalsmith , opts , helpers ) {}
208
+ before : function (metalsmith , opts , helpers ) {},
209
+ after : function (metalsmith , opts , helpers ) {}
210
210
}
211
211
}
212
212
```
@@ -236,7 +236,7 @@ Arguments:
236
236
- ` data ` : the same data you can access in ` completeMessage ` :
237
237
``` js
238
238
{
239
- complete (data ) {
239
+ complete (data ) {
240
240
if (! data .inPlace ) {
241
241
console .log (` cd ${ data .destDirName } ` )
242
242
}
@@ -250,7 +250,7 @@ Arguments:
250
250
- ` files ` : An array of generated files
251
251
``` js
252
252
{
253
- complete (data , {logger, chalk}) {
253
+ complete (data , {logger, chalk}) {
254
254
if (! data .inPlace ) {
255
255
logger .log (` cd ${ chalk .yellow (data .destDirName )} ` )
256
256
}
0 commit comments