Updated: angular2 0.40.0 integration

This commit is contained in:
buchslava
2015-10-15 13:08:11 +03:00
parent 9edba490fc
commit d993060c62
7 changed files with 48 additions and 44 deletions

View File

@@ -28,10 +28,16 @@ var absDest = path.join(__dirname, dest);
var config = {
// isProduction ? 'source-map' : 'evale',
devtool: 'source-map',
debug: true,
cache: false,
cache: true,
verbose: true,
displayErrorDetails: true,
context: __dirname,
stats: {
colors: true,
reasons: true
},
resolve: {
root: __dirname,
@@ -42,11 +48,10 @@ var config = {
entry: {
angular2: [
// Angular 2 Deps
'traceur-runtime',
'zone.js',
'reflect-metadata',
'rtts_assert/rtts_assert',
'angular2/angular2'
'angular2/angular2',
'angular2/core'
],
'angular2-file-upload': ['components'],
'angular2-file-upload-demo': 'demo'
@@ -67,15 +72,10 @@ var config = {
proxy: {
'*/api/*': 'http://localhost:3000/'
},
/*noInfo: false,
hot: true,
inline: true,
devtool: 'eval',*/
contentBase: src,
publicPath: dest
},
markdownLoader: {
langPrefix: 'language-',
highlight: function (code, lang) {
@@ -107,8 +107,21 @@ var config = {
// Support for .ts files.
{
test: /\.ts$/,
loader: 'typescript-simple',
loader: 'ts',
query: {
ignoreDiagnostics: [
// TS2305 -> Module 'ng' has no exported member
2305,
// TS2307 -> Cannot find external module
2307,
// TS2300 -> Duplicate identifier
2300,
// TS2309 -> An export assignment cannot be used in a module with other exported elements.
2309
]
},
exclude: [
/\.min\.js$/,
/\.spec\.ts$/,
/\.e2e\.ts$/,
/web_modules/,
@@ -118,7 +131,8 @@ var config = {
}
],
noParse: [
/rtts_assert\/src\/rtts_assert/
/rtts_assert\/src\/rtts_assert/,
/reflect-metadata/
]
},
@@ -160,9 +174,7 @@ var config = {
minRatio: 0.8
})
]);
},
stats: {colors: true, reasons: true}
}
};
config.pushPlugins();