From 424cdc5f263fdda4f1792b6b2f3016e02a8d352c Mon Sep 17 00:00:00 2001 From: paramagicdev Date: Wed, 7 Oct 2020 15:04:38 -0400 Subject: [PATCH] fix: change assets to images --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 72de1d6..307850b 100644 --- a/src/index.js +++ b/src/index.js @@ -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, }); });