Fix module resolution.

This commit is contained in:
Alexis Lahouze 2017-07-11 08:49:39 +02:00
parent 2ae971a7ad
commit 3ff0015690
2 changed files with 9 additions and 5 deletions

View File

@ -30,7 +30,7 @@ var ngResource = require('angular-resource'),
var balanceChartModule = require('./balance-chart.component'),
categoryChartModule = require('./category-chart.component');
import accountModule from '../accounts/index';
import accountModule from '@accountant/accounts';
var OperationFactory = require('./operation.factory');
var OperationConfig = require('./operation.config');

View File

@ -10,10 +10,14 @@ module.exports = {
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.html'],
alias: {
'@accountant/accounts': './accounts/index.ts',
'@accountant/operations': './operations/index.ts',
'@accountant/login': './login/index.ts',
'@accountant/scheduler': './scheduler/index.ts'
'@accountant/accounts': path.resolve(
__dirname, 'src/accounts/index.ts'),
'@accountant/operations': path.resolve(
__dirname, 'src/operations/index.ts'),
'@accountant/login': path.resolve(
__dirname, 'src/login/index.ts'),
'@accountant/scheduler': path.resolve(
__dirname, 'src/scheduler/index.ts')
}
},
module: {