2018-02-23 12:02:56 +00:00
|
|
|
const { resolve } = require('path');
|
|
|
|
const webpackMerge = require('webpack-merge');
|
|
|
|
const { dev, prod } = require('@ionic/app-scripts/config/webpack.config');
|
|
|
|
|
|
|
|
const customConfig = {
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@addon': resolve('./src/addon'),
|
|
|
|
'@classes': resolve('./src/classes'),
|
|
|
|
'@core': resolve('./src/core'),
|
|
|
|
'@providers': resolve('./src/providers'),
|
|
|
|
'@components': resolve('./src/components'),
|
|
|
|
'@directives': resolve('./src/directives/directives.module'),
|
|
|
|
'@pipes': resolve('./src/pipes/pipes.module')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
dev: webpackMerge(dev, customConfig),
|
|
|
|
prod: webpackMerge(prod, customConfig),
|
2018-02-27 07:39:45 +00:00
|
|
|
}
|