Last active
May 8, 2017 21:19
-
-
Save tlancina/dd1c23c1c243b6d2c941e5cfabe03b1a to your computer and use it in GitHub Desktop.
A simple webpack config for TypeScript Ionic 2 starters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
module.exports = { | |
entry: [ | |
path.resolve('app/app.ts') | |
], | |
output: { | |
path: path.resolve('www/build/js'), | |
filename: 'app.bundle.js' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.ts$/, | |
loader: 'awesome-typescript', | |
query: { | |
doTypeCheck: true, | |
resolveGlobs: false, | |
externals: ["typings/browser.d.ts"] | |
}, | |
include: path.resolve('app'), | |
exclude: /node_modules/ | |
} | |
] | |
}, | |
resolve: { | |
alias: { | |
'angular2': path.resolve('node_modules/angular2') | |
}, | |
extensions: ['', '.js', '.ts'] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, reviewing your code i notice you deleted the
noParse
section, i tough that was meant to be faster as it stop from parsing those files or paths, is there a reason to remove it?