I'm trying to load json file vie requirejs like the following:
'use strict';
require.config({
paths: {
config: '../../configs/config.json'
}
});
require([
'spec/test.js',
], function() {
mocha.run();
});
To be possible require it like the following:
define(function(require, exports, module) {
var configJSON = require('config');
});
But unfortunately I get the following error:
<PATH_TO_PROJECT>/configs/config.json.js net::ERR_FILE_NOT_FOUND