From dcb97a5b96474932c4270a1fb8542573fa78dbbe Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sat, 25 Feb 2017 23:32:18 +0200 Subject: [PATCH] build: exclude rxjs operators and testing from resulting bundle --- build/empty.js | 0 build/webpack.common.js | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 build/empty.js diff --git a/build/empty.js b/build/empty.js new file mode 100644 index 00000000..e69de29b diff --git a/build/webpack.common.js b/build/webpack.common.js index d13e955e..29cd5bee 100644 --- a/build/webpack.common.js +++ b/build/webpack.common.js @@ -82,7 +82,7 @@ module.exports = function (options) { }, { test: /lib[\\\/].*\.scss$/, - loaders: ['raw-loader', "sass-loader"], + loaders: ['raw-loader', 'sass-loader'], exclude: [/redoc-initial-styles\.scss$/] }, { @@ -110,7 +110,9 @@ module.exports = function (options) { 'AOT': options.AOT }), - new StringReplacePlugin() + new StringReplacePlugin(), + new webpack.NormalModuleReplacementPlugin(/node_modules\/rxjs\/operator\/.*/, root('build/empty.js')), + new webpack.NormalModuleReplacementPlugin(/node_modules\/rxjs\/testing\//, root('build/empty.js')) ], node: { global: true,