added error component and coverage for new components

This commit is contained in:
William Welling
2017-10-04 14:17:19 -05:00
parent a9faab6833
commit 7937a47aa5
14 changed files with 138 additions and 20 deletions

View File

@@ -5,9 +5,10 @@ const {
/**
* Webpack Plugins
*/
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');
const DefinePlugin = require('webpack/lib/DefinePlugin');
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
/**
* Webpack Constants
@@ -75,8 +76,9 @@ module.exports = function (options) {
loader: 'source-map-loader',
exclude: [
// these packages have problems with their sourcemaps
root('node_modules/rxjs'),
root('node_modules/@angular')
root('node_modules/@angular'),
root('node_modules/@nguniversal'),
root('node_modules/rxjs')
]
},
@@ -221,6 +223,12 @@ module.exports = function (options) {
*/
plugins: [
new ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)@angular/,
root('./src'),
{}
),
/**
* Plugin: DefinePlugin
* Description: Define free variables.