mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
build: exclude rxjs operators and testing from resulting bundle
This commit is contained in:
parent
f1bd4a7a82
commit
dcb97a5b96
0
build/empty.js
Normal file
0
build/empty.js
Normal file
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user