Skip to content

Commit 99cba1d

Browse files
committed
Merge pull request #12 from tsing80/win-support
Fix windows support
2 parents e57e172 + aa7c708 commit 99cba1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ module.exports = {
44
name: 'Ember CLI ic-ajax',
55

66
init: function(name) {
7-
this.treePaths['vendor'] = require.resolve('ic-ajax').replace('ic-ajax/dist/cjs/main.js', '');
7+
var assets_path = require('path').join('ic-ajax','dist','cjs','main.js');
8+
this.treePaths['vendor'] = require.resolve('ic-ajax').replace(assets_path, '');
89
},
910

1011
included: function(app) {

0 commit comments

Comments
 (0)