Skip to content

Commit b5f73ac

Browse files
Merge branch 'environment-source-pr' into environmentSource
* environment-source-pr: refactor(build): replace `source` in environments with `environmentDefault` entry refactor(build): replace `source` in environments with `environmentDefault` entry # Conflicts: # packages/angular-cli/models/webpack-build-test.js
2 parents 1540045 + 6dc8ef6 commit b5f73ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular-cli/models/webpack-build-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const getWebpackTestConfig = function (projectRoot, environment, appConfig, test
128128
// This plugin is responsible for swapping the environment files.
129129
// Since it takes a RegExp as first parameter, we need to escape the path.
130130
// See https://webpack.github.io/docs/list-of-plugins.html#normalmodulereplacementplugin
131-
new RegExp(path.resolve(appRoot, appConfig.['environmentSource'])
131+
new RegExp(path.resolve(appRoot, appConfig['environmentSource'])
132132
.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&')),
133133
path.resolve(appRoot, appConfig.environments[environment])
134134
),

0 commit comments

Comments
 (0)