Skip to content

Commit

Permalink
Stop using utf-8 encoding when reading static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jan 8, 2021
1 parent 45a8aec commit 1e8d29a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/create-block/lib/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ const getOutputAssets = async ( outputAssetsPath ) => {
await Promise.all(
outputAssetFiles.map( async ( outputAssetFile ) => {
const outputAsset = await readFile(
join( outputAssetsPath, outputAssetFile ),
'utf8'
join( outputAssetsPath, outputAssetFile )
);
return [ outputAssetFile, outputAsset ];
} )
Expand Down

0 comments on commit 1e8d29a

Please sign in to comment.