We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af5977c commit c7735abCopy full SHA for c7735ab
packages/@angular/cli/models/webpack-configs/common.ts
@@ -121,11 +121,15 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
121
asset.glob = asset.glob + '/**/*';
122
}
123
124
+ // Escape the input in case it has special charaters and use to make glob absolute
125
+ const escapedInput = asset.input
126
+ .replace(/[\\|\*|\?|\!|\(|\)|\[|\]|\{|\}]/g, (substring) => `\\${substring}`);
127
+
128
return {
129
context: asset.input,
130
to: asset.output,
131
from: {
- glob: asset.glob,
132
+ glob: path.resolve(escapedInput, asset.glob),
133
dot: true
134
135
};
0 commit comments