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 // list of files / patterns to load in the browser
files: [ files: [
'node_modules/localforage/dist/localforage.min.js', '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', 'browser-version/out/nedb.min.js',
'test/browser/nedb-browser.spec.js', 'test/browser/nedb-browser.spec.js',
'test/browser/load.spec.js' 'test/browser/load.spec.js'

@ -42,7 +42,7 @@ module.exports = (env, argv) => {
}, },
output: { output: {
path: path.join(__dirname, 'browser-version/out'), path: path.join(__dirname, 'browser-version/out'),
filename: `[name]${minimize ? '.min' : ''}.js`, filename: pathData => `${pathData.chunk.name.toLowerCase()}${minimize ? '.min' : ''}.js`,
libraryTarget: 'window', libraryTarget: 'window',
library: '[name]' library: '[name]'
} }

Loading…
Cancel
Save