fix case sensitiveness on filename

pull/11/head
Timothée Rebours 3 years ago
parent dd7c3c62d4
commit c480c1230c
  1. 2
      karma.conf.template.js
  2. 2
      webpack.config.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'

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

Loading…
Cancel
Save