mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
added error component and coverage for new components
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user