diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-16 21:35:25 -0800 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-16 21:37:08 -0800 |
commit | 585758a373df05127b0d544ac5971ef67f053e83 (patch) | |
tree | 186e27d2256929e1c75d6f56ca0d31f2018259d4 /config/webpack | |
parent | b28b405b9763a0bb3df653b51e6d084b42e9a54d (diff) |
Themed prefetching
Diffstat (limited to 'config/webpack')
-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; } } |