File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ leaflet-geosearch.meijer.works
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/no-var-requires */
2
2
const path = require ( 'path' ) ;
3
+ const fs = require ( 'fs' ) ;
4
+
5
+ const statics = [ 'CNAME' ] ;
6
+
7
+ exports . onPostBuild = ( { reporter } ) => {
8
+ for ( const file of statics ) {
9
+ const src = path . resolve ( process . cwd ( ) , file ) ;
10
+ const dest = path . resolve ( process . cwd ( ) , '.docz/dist' , file ) ;
11
+
12
+ if ( ! fs . existsSync ( src ) ) {
13
+ reporter . info ( `File ${ file } not found` ) ;
14
+ continue ;
15
+ }
16
+
17
+ fs . copyFileSync ( src , dest ) ;
18
+ reporter . info ( `Copied ${ src } → ${ dest } ` ) ;
19
+ }
20
+ } ;
3
21
4
22
exports . onCreateWebpackConfig = ( { actions, stage, loaders } ) => {
5
23
if ( stage === 'build-html' || stage === 'develop-html' ) {
You can’t perform that action at this time.
0 commit comments