File tree 1 file changed +0
-7
lines changed
packages/@angular/cli/models/webpack-configs
1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,6 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
96
96
const outputRelativeOutput = path . relative ( absoluteOutputPath , absoluteAssetOutput ) ;
97
97
98
98
if ( outputRelativeOutput . startsWith ( '..' ) || path . isAbsolute ( outputRelativeOutput ) ) {
99
-
100
- const projectRelativeOutput = path . relative ( projectRoot , absoluteAssetOutput ) ;
101
- if ( projectRelativeOutput . startsWith ( '..' ) || path . isAbsolute ( projectRelativeOutput ) ) {
102
- const message = 'An asset cannot be written to a location outside the project.' ;
103
- throw new SilentError ( message ) ;
104
- }
105
-
106
99
if ( ! asset . allowOutsideOutDir ) {
107
100
const message = 'An asset cannot be written to a location outside of the output path. '
108
101
+ 'You can override this message by setting the `allowOutsideOutDir` '
You can’t perform that action at this time.
0 commit comments