From a5931987a07ad82212c0baf7c0c61d80ee3783e8 Mon Sep 17 00:00:00 2001
From: xgui3783 <xgui3783@gmail.com>
Date: Tue, 30 Jun 2020 19:34:17 +0200
Subject: [PATCH] fix webpack assets (#559)

---
 webpack.staticassets.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/webpack.staticassets.js b/webpack.staticassets.js
index 3f393a4d0..c06e675fa 100644
--- a/webpack.staticassets.js
+++ b/webpack.staticassets.js
@@ -31,7 +31,10 @@ module.exports = {
         use : [{
           loader : 'file-loader',
           options : {
-            name : '[name].[ext]',
+            name (resourcePath, resourceQuery) {
+              const appendAtlas = /res\/ext\/atlas\//.test(resourcePath)
+              return `${appendAtlas ? 'atlas/' : ''}[name].[ext]`
+            },
             outputPath : 'res/json'
           }
         }]
-- 
GitLab