mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #7181
This commit is contained in:
@@ -9,7 +9,7 @@ var plugins = require('../plugins');
|
||||
|
||||
exports.handle404 = function handle404(req, res) {
|
||||
var relativePath = nconf.get('relative_path');
|
||||
var isClientScript = new RegExp('^' + relativePath + '\\/assets\\/src\\/.+\\.js');
|
||||
var isClientScript = new RegExp('^' + relativePath + '\\/assets\\/src\\/.+\\.js$');
|
||||
|
||||
if (plugins.hasListeners('action:meta.override404')) {
|
||||
return plugins.fireHook('action:meta.override404', {
|
||||
|
||||
@@ -232,7 +232,7 @@ function minifyAndSave(data, callback) {
|
||||
var minified = uglify.minify(scripts, {
|
||||
sourceMap: {
|
||||
filename: data.filename,
|
||||
url: data.filename + '.map',
|
||||
url: String(data.filename).split(/[\/\\]/).pop() + '.map',
|
||||
includeSources: true,
|
||||
},
|
||||
compress: false,
|
||||
|
||||
Reference in New Issue
Block a user