From febf2d7a83950bb1dbf5e7de86d53b2b2f750236 Mon Sep 17 00:00:00 2001 From: Allen Lee Date: Thu, 2 Dec 2021 00:14:31 +0800 Subject: [PATCH] Feat: enable outputOptions for *FileNames Allow custom to override the `chunkFileNames`, `assetsFileNames`, `entryFileNames` for `outputOptions` by options from configuration. --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index e0abf3e..74bba22 100644 --- a/src/index.ts +++ b/src/index.ts @@ -91,10 +91,10 @@ export const chromeExtension = ( }, outputOptions(options) { return { - ...options, chunkFileNames: "[name].[hash].js", assetFileNames: "[name].[hash].[ext]", - entryFileNames: "[name].js" + entryFileNames: "[name].js", + ...options }; }, async generateBundle(options, bundle, isWrite) {