Skip to content

Commit

Permalink
fix: change assets to images
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Oct 7, 2020
1 parent 2a9781c commit 424cdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ async function rollupBuild({ pluginOptions, inputOptions, outputOptions }) {
await bundle.write(outputOptions);

// Add assets to manifest, use path.relative to fix minor issues
glob.sync(`${TMP_BUILD_DIRECTORY}/assets/**/*.*`).forEach((fileName) => {
glob.sync(`${TMP_BUILD_DIRECTORY}/images/**/*.*`).forEach((fileName) => {
fileName = path.relative(TMP_BUILD_DIRECTORY, fileName);
const chunkOrAsset = { fileName, map: null };
addToManifest({
manifest,
chunkOrAsset,
assignTo: "assets",
assignTo: "images",
useFileType: false,
});
});
Expand Down

0 comments on commit 424cdc5

Please sign in to comment.