1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- var path = require('path');
- var paths = require('./ionic.config').paths;
- module.exports = {
- entry: [
- 'es6-shim/es6-shim.min',
- 'reflect-metadata',
- 'web-animations.min',
- 'zone.js',
- path.join(__dirname, paths.wwwDir, paths.appDir, paths.appSrcModule)
- ],
- output: {
- path: path.join(__dirname, paths.wwwDir, paths.buildDir, paths.buildJSDir),
- filename: paths.appBuildBundle,
- publicPath: path.join(paths.buildDir, paths.buildJSDir),
- pathinfo: false // show module paths in the bundle, handy for debugging
- },
- module: {
- loaders: [
- {
- test: /\.ts$/,
- loader: 'awesome-typescript',
- query: {
- 'doTypeCheck': false
- },
- include: [path.join(__dirname, paths.wwwDir)],
- exclude: /node_modules/
- },
- {
- test: /\.js$/,
- include: /node_modules\/angular2/,
- loader: 'strip-sourcemap'
- }
- ]
- },
- resolve: {
- alias: {
- 'web-animations.min': 'ionic-framework/js/web-animations.min',
- },
- extensions: ["", ".js", ".ts"]
- }
- };
|