bundle in reftools in lib build

This commit is contained in:
Roman Hotsiy 2017-12-07 13:52:32 +02:00
parent ff20838e5a
commit 57129d3f58
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -3,7 +3,7 @@ import * as HtmlWebpackPlugin from 'html-webpack-plugin';
const nodeExternals = require('webpack-node-externals')({
// bundle in moudules that need transpiling + non-js (e.g. css)
whitelist: ['swagger2openapi', 'reftools', /\.(?!(?:jsx?|json)$).{1,5}$/i],
whitelist: ['swagger2openapi', /reftools/, /\.(?!(?:jsx?|json)$).{1,5}$/i],
});
const VERSION = JSON.stringify(require('./package.json').version);