Ionic 2 build process


#1

It is very unclear.
How can I modify build process?
For example I need add hooks before TypeScript compiles.


#2

How can I add

resolve: {
    extensions: ['', '.js', '.ts'],
    alias: {
      "src": path.resolve('./src')
    }
},

to webpack config? It need for use absolute require path insted relative


#3

I have a similar question. I want to create alias for pages and providers, to avoid ../../ in import paths

import { ViewerService } from '../../providers/viewer';
import { Salon } from '../salon/salon';

#4

All,

We may add support for this in the future but at this time we don’t plan on formally supporting this type of customization.

You’re welcome to try to customize the webpack config, etc, but there is a good chance it is going to break something else. If you do get something working, please share back so others can use that solution.

Thanks,
Dan