From c480c1230c5c3abe53b8171cd0d9d2ac5c8a0d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Rebours?= Date: Mon, 25 Oct 2021 11:47:11 +0200 Subject: [PATCH] fix case sensitiveness on filename --- karma.conf.template.js | 2 +- webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/karma.conf.template.js b/karma.conf.template.js index 0eab6eb..c87cae6 100644 --- a/karma.conf.template.js +++ b/karma.conf.template.js @@ -14,7 +14,7 @@ module.exports = (config) => ({ // list of files / patterns to load in the browser files: [ 'node_modules/localforage/dist/localforage.min.js', - 'browser-version/out/testUtils.min.js', + 'browser-version/out/testutils.min.js', 'browser-version/out/nedb.min.js', 'test/browser/nedb-browser.spec.js', 'test/browser/load.spec.js' diff --git a/webpack.config.js b/webpack.config.js index 6ba8737..6846602 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -42,7 +42,7 @@ module.exports = (env, argv) => { }, output: { path: path.join(__dirname, 'browser-version/out'), - filename: `[name]${minimize ? '.min' : ''}.js`, + filename: pathData => `${pathData.chunk.name.toLowerCase()}${minimize ? '.min' : ''}.js`, libraryTarget: 'window', library: '[name]' }