Yeah you can append code to existing file with append action. Something like this
{// Action type 'append' injects a template into an existing filetype:'append',path:'src/routes/index.js',// Pattern tells plop where in the file to inject the templatepattern:`/* PLOP_INJECT_IMPORT */`,template:`import {{pascalCase name}} from './{{pascalCase name}}';`,},
Yeah you can append code to existing file with
append
action. Something like thisbut also we need to create router :(
your linkedin? how can we connect
yeah, let's talk on twitter