Skip to content

Instantly share code, notes, and snippets.

@tlancina
Last active May 8, 2017 21:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlancina/dd1c23c1c243b6d2c941e5cfabe03b1a to your computer and use it in GitHub Desktop.
Save tlancina/dd1c23c1c243b6d2c941e5cfabe03b1a to your computer and use it in GitHub Desktop.
A simple webpack config for TypeScript Ionic 2 starters
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']
}
};
@luchillo17
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment