build: Configure AOT (#394)

* build: Configure AOT

* build: Fix appveyor ENV settings
This commit is contained in:
Róbert Kiss
2017-08-26 00:56:28 +02:00
committed by László Monda
parent 015d110c2b
commit be3e116130
9 changed files with 1968 additions and 8049 deletions

View File

@@ -1,5 +1,8 @@
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const ContextReplacementPlugin = require("webpack/lib/ContextReplacementPlugin")
const webpackHelper = require('../../scripts/webpack-helper');
const rootDir = __dirname;
@@ -35,6 +38,11 @@ module.exports = {
to: 'package.json'
}
]
),
new ContextReplacementPlugin(
// The (\\|\/) piece accounts for path separators in *nix and Windows
/angular(\\|\/)core(\\|\/)@angular/,
webpackHelper.root(__dirname, './src') // location of your src
)
],
node: {
@@ -42,4 +50,4 @@ module.exports = {
__filename: false
}
};
}