Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Commit 68e06e9

Browse files
fix(tools): add workaround to error Cannot find module.ngfactory
See: * angular/angular-cli#6518 * angular/angular-cli#4431
1 parent a6754e8 commit 68e06e9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

webpack.config.prod.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,17 @@ var config = {
7070

7171
new webpack.DefinePlugin(buildDefines()),
7272

73+
// TODO exclude this plugin until this is fixed:
74+
// https://github.com/angular/angular-cli/issues/4431
75+
// https://github.com/angular/angular-cli/issues/6518
76+
/*
7377
// Provides context to Angular's use of System.import
7478
new webpack.ContextReplacementPlugin(
7579
common.patterns.angularContext,
7680
common.absPaths.clientSrc,
7781
{}
7882
),
83+
*/
7984

8085
new webpack.optimize.CommonsChunkPlugin({
8186
name: ['main', 'vendor'],
@@ -93,9 +98,7 @@ var config = {
9398
}),
9499

95100
// Minimize scripts
96-
/*
97101
new webpack.optimize.UglifyJsPlugin(),
98-
*/
99102

100103
// Only emit files when there are no errors
101104
new webpack.NoEmitOnErrorsPlugin(),

0 commit comments

Comments
 (0)