File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
common/changes/@rushstack/heft-sass-plugin
heft-plugins/heft-sass-plugin/src Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "changes" : [
3
+ {
4
+ "packageName" : " @rushstack/heft-sass-plugin" ,
5
+ "comment" : " Fix an issue where generated `.scss.js` files can contain an incorrect path to the `.css` file." ,
6
+ "type" : " patch"
7
+ }
8
+ ],
9
+ "packageName" : " @rushstack/heft-sass-plugin"
10
+ }
Original file line number Diff line number Diff line change @@ -781,7 +781,7 @@ export class SassProcessor {
781
781
782
782
const filename : string = path . basename ( relativeFilePath ) ;
783
783
const extensionStart : number = filename . lastIndexOf ( '.' ) ;
784
- const cssPathFromJs : string = `./${ relativeFilePath . slice ( 0 , extensionStart ) } .css` ;
784
+ const cssPathFromJs : string = `./${ filename . slice ( 0 , extensionStart ) } .css` ;
785
785
const relativeCssPath : string = `${ relativeFilePath . slice ( 0 , relativeFilePath . lastIndexOf ( '.' ) ) } .css` ;
786
786
787
787
if ( cssOutputFolders && cssOutputFolders . length > 0 ) {
You can’t perform that action at this time.
0 commit comments