Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
525 bytes
|
Line | |
---|
1 | const path = require('path');
|
---|
2 |
|
---|
3 | const smsPath = path.dirname(require.resolve('source-map-support'));
|
---|
4 |
|
---|
5 | const createPattern = function(pattern) {
|
---|
6 | return {pattern: pattern, included: true, served: true, watched: false};
|
---|
7 | };
|
---|
8 |
|
---|
9 | const init = function(files) {
|
---|
10 | files.unshift(createPattern(path.join(__dirname, 'client.js')));
|
---|
11 | files.unshift(
|
---|
12 | createPattern(path.join(smsPath, 'browser-source-map-support.js'))
|
---|
13 | );
|
---|
14 | };
|
---|
15 |
|
---|
16 | init.$inject = ['config.files'];
|
---|
17 |
|
---|
18 | module.exports = {
|
---|
19 | 'framework:source-map-support': ['factory', init]
|
---|
20 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.