mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: basepath for r.js modules
This commit is contained in:
@@ -245,22 +245,22 @@ async function requirejsOptimize(target) {
|
|||||||
};
|
};
|
||||||
const bundledModules = [
|
const bundledModules = [
|
||||||
{
|
{
|
||||||
baseUrl: './node_modules',
|
baseUrl: path.join(basePath, 'node_modules'),
|
||||||
name: 'timeago/jquery.timeago',
|
name: 'timeago/jquery.timeago',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
baseUrl: './node_modules/nprogress',
|
baseUrl: path.join(basePath, 'node_modules/nprogress'),
|
||||||
name: 'nprogress',
|
name: 'nprogress',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
baseUrl: './node_modules/bootbox',
|
baseUrl: path.join(basePath, 'node_modules/bootbox'),
|
||||||
name: 'bootbox',
|
name: 'bootbox',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const targetModules = {
|
const targetModules = {
|
||||||
admin: [
|
admin: [
|
||||||
{
|
{
|
||||||
baseUrl: './node_modules/sortablejs',
|
baseUrl: path.join(basePath, 'node_modules/sortablejs'),
|
||||||
name: 'Sortable',
|
name: 'Sortable',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user