Fix serving the same style twice
This commit is contained in:
parent
4eea8a91b8
commit
6100013718
2 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ module.exports = function(options, repo, params, id) {
|
|||
});
|
||||
};
|
||||
|
||||
styleJSON = require(path.join(options.paths.styles, styleFile));
|
||||
styleJSON = clone(require(path.join(options.paths.styles, styleFile)));
|
||||
styleJSON.sprite = 'sprites://' + path.basename(styleFile, '.json');
|
||||
styleJSON.glyphs = 'fonts://{fontstack}/{range}.pbf';
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ module.exports = function(opts, callback) {
|
|||
|
||||
var config;
|
||||
try {
|
||||
config = require(configPath);
|
||||
config = clone(require(configPath));
|
||||
} catch (e) {
|
||||
console.log('ERROR: Config file not found or invalid!');
|
||||
console.log(' See README.md for instructions and sample data.');
|
||||
|
|
Loading…
Reference in a new issue