diff options
author | David Yip <yipdw@member.fsf.org> | 2017-11-17 14:01:23 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-17 14:01:23 -0600 |
commit | 45f18b8f494153fd63871d60782da992e847ec16 (patch) | |
tree | 82b4be5028ec4c8e066c69bdf068ac786104508f /config | |
parent | 2a386ad88dad4a076f19dbd1b085ea561868deec (diff) | |
parent | 585758a373df05127b0d544ac5971ef67f053e83 (diff) |
Merge pull request #218 from glitch-soc/themed-prefetching
Themed preloading
Diffstat (limited to 'config')
-rw-r--r-- | config/webpack/configuration.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/webpack/configuration.js b/config/webpack/configuration.js index 606eb97f1..74f75d89b 100644 --- a/config/webpack/configuration.js +++ b/config/webpack/configuration.js @@ -1,6 +1,6 @@ // Common configuration for webpacker loaded from config/webpacker.yml -const { dirname, join, resolve } = require('path'); +const { basename, dirname, join, resolve } = require('path'); const { env } = require('process'); const { safeLoad } = require('js-yaml'); const { readFileSync } = require('fs'); @@ -18,8 +18,8 @@ for (let i = 0; i < themeFiles.length; i++) { if (!data.pack_directory) { data.pack_directory = dirname(themeFile); } - if (data.name && data.pack) { - themes[data.name] = data; + if (data.pack) { + themes[basename(dirname(themeFile))] = data; } } |