Skip to content

Commit f174370

Browse files
committed
chore(webpack): hide annoying angular warnings
1 parent a46a002 commit f174370

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: templates/app/webpack.make.js

+6
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@ module.exports = function makeWebpackConfig(options) {
268268
* List: http://webpack.github.io/docs/list-of-plugins.html
269269
*/
270270
config.plugins = [
271+
// Hides the 'the request of a dependency is an expression' warnings
272+
new webpack.ContextReplacementPlugin(
273+
/angular(\\|\/)core/,
274+
path.resolve(__dirname, '../src')
275+
),
276+
271277
// Reference: https://github.com/webpack/extract-text-webpack-plugin
272278
// Extract css files
273279
// Disabled when in test mode or not in build mode

0 commit comments

Comments
 (0)