diff options
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; } } |