8000 Fix angular require paths · packetloop/angular-webpack@9b7ff19 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 21, 2019. It is now read-only.

Commit 9b7ff19

committed
Fix angular require paths
1 parent 3c7f70c commit 9b7ff19

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/vendor/angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
if (!global.window.angular) {
4-
require('angular');
4+
require('npm/angular/angular');
55
}
66
var angular = global.window.angular;
77
module.exports = angular;

src/vendor/angular_route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

3-
var angular = require('./angular');
4-
require('angular-route');
3+
var angular = require('vendor/angular');
4+
require('npm/angular-route/angular-route');
55
module.exports = angular.module('ngRoute');

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
resolve: {
1414
modulesDirectories: ['node_modules'],
1515
alias: {
16+
'npm': __dirname + '/node_modules',
1617
'vendor': __dirname + '/src/vendor/'
1718
}
1819
},

0 commit comments

Comments
 (0)
0