Skip to content

Commit 74f99a3

Browse files
authored
fix: angular2 perf problem
closes PatrickJS#979
1 parent 23f7ce0 commit 74f99a3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

config/webpack.common.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,19 @@ module.exports = function(options) {
176176
test: /\.(jpg|png|gif)$/,
177177
loader: 'file'
178178
}
179-
]
179+
],
180180

181+
postLoaders: [
182+
{
183+
test: /\.js$/,
184+
loader: 'string-replace-loader',
185+
query: {
186+
search: 'var sourceMappingUrl = extractSourceMappingUrl\\(cssText\\);',
187+
replace: 'var sourceMappingUrl = "";',
188+
flags: 'g'
189+
}
190+
}
191+
]
181192
},
182193

183194
/*

0 commit comments

Comments
 (0)