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]' }