File tree 3 files changed +23
-1
lines changed
build-tests/hashed-folder-copy-plugin-webpack5-test/src
common/changes/@rushstack/hashed-folder-copy-plugin
webpack/hashed-folder-copy-plugin/src
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,16 @@ const ASSETS_BASE_URL: string = requireFolder({
10
10
]
11
11
} ) ;
12
12
13
+ const HEFT_SRC_FILES_BASE_URL : string = requireFolder ( {
14
+ outputFolder : 'heft_src_files_[hash]' ,
15
+ sources : [
16
+ {
17
+ globsBase : '@rushstack/heft/src' ,
18
+ globPatterns : [ '**/*' ]
19
+ }
20
+ ]
21
+ } ) ;
22
+
13
23
function appendImageToBody ( url : string ) : void {
14
24
const image : HTMLImageElement = document . createElement ( 'img' ) ;
15
25
image . src = url ;
@@ -25,3 +35,5 @@ appendImageToBody(`${ASSETS_BASE_URL2}/red.png`);
25
35
appendImageToBody ( `${ ASSETS_BASE_URL2 } /green.png` ) ;
26
36
appendImageToBody ( `${ ASSETS_BASE_URL2 } /blue.png` ) ;
27
37
appendImageToBody ( `${ ASSETS_BASE_URL2 } /subfolder/yellow.png` ) ;
38
+
39
+ console . log ( HEFT_SRC_FILES_BASE_URL ) ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "changes" : [
3
+ {
4
+ "packageName" : " @rushstack/hashed-folder-copy-plugin" ,
5
+ "comment" : " Fix an issue where globbing assets from a NPM package would fail on Windows." ,
6
+ "type" : " patch"
7
+ }
8
+ ],
9
+ "packageName" : " @rushstack/hashed-folder-copy-plugin"
10
+ }
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ function _getHashedFolderDependencyForWebpackInstance(webpack: typeof import('we
238
238
return renderError ( errorMessage ) ;
239
239
}
240
240
241
- const globResultFullPath : string = path . posix . resolve ( resolvedGlobsBase , globResult ) ;
241
+ const globResultFullPath : string = path . resolve ( resolvedGlobsBase , globResult ) ;
242
242
243
243
let assetContents : string | Buffer | undefined ;
244
244
try {
You can’t perform that action at this time.
0 commit comments