File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ export class FileService {
3232 }
3333
3434 genStyle ( template : string ) {
35- const filePath = this . getFilePath ( EXT . style , 'style ' ) ;
35+ const filePath = this . getFilePath ( EXT . style , 'styles ' ) ;
3636 if ( ! fs . pathExistsSync ( filePath ) ) {
3737 fs . writeFileSync ( filePath , template ) ;
3838 Logger . success (
3939 chalk =>
40- `Successfully generated style file ${ chalk . white ( path . relative ( APP_ROOT , filePath ) ) } `
40+ `Successfully generated styles file ${ chalk . white ( path . relative ( APP_ROOT , filePath ) ) } `
4141 ) ;
4242 } else {
4343 Logger . warn ( chalk => `File already exists ${ chalk . white ( filePath ) } ` ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { generateHooks } from '../shared';
66
77export class ComponentTemplate extends TemplateBase implements Template {
88 getStyleImportStringLiteral ( ) {
9- const name = `${ this . vars . fileName } .styles.${ this . vars . ext . style } ` ;
9+ const name = `./ ${ this . vars . fileName } .styles.${ this . vars . ext . style } ` ;
1010 return t . stringLiteral ( name ) ;
1111 }
1212
You can’t perform that action at this time.
0 commit comments