Fix chunk names
This commit is contained in:
@@ -262,7 +262,7 @@ class AppRouter {
|
||||
};
|
||||
|
||||
if (route.controller) {
|
||||
import('../controllers/' + route.controller).then(onInitComplete);
|
||||
import(/* webpackChunkName: "[request]" */ '../controllers/' + route.controller).then(onInitComplete);
|
||||
} else {
|
||||
onInitComplete();
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ const Direction = {
|
||||
|
||||
const url = filtered[0].path;
|
||||
|
||||
import(`../strings/${url}`).then((fileContent) => {
|
||||
import(/* webpackChunkName: "[request]" */ `../strings/${url}`).then((fileContent) => {
|
||||
resolve(fileContent);
|
||||
}).catch(() => {
|
||||
resolve({});
|
||||
|
||||
Reference in New Issue
Block a user