mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06:34 +03:00
Ignore changes (watcher) during tests
This commit is contained in:
parent
e6efe35595
commit
d297ac475d
|
@ -1,12 +1,11 @@
|
|||
const webpack = require('webpack');
|
||||
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
|
||||
|
||||
const root = require('./helpers').root;
|
||||
const VERSION = JSON.stringify(require('../package.json').version);
|
||||
|
||||
|
||||
module.exports = {
|
||||
//context: root(),
|
||||
|
||||
devtool: 'inline-source-map',
|
||||
resolve: {
|
||||
extensions: ['', '.ts', '.js', '.json', '.css', '.scss', '.html'],
|
||||
|
@ -90,14 +89,18 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
|
||||
|
||||
plugins: [
|
||||
|
||||
new webpack.DefinePlugin({
|
||||
'IS_PRODUCTION': false,
|
||||
'LIB_VERSION': VERSION
|
||||
}),
|
||||
|
||||
new ForkCheckerPlugin()
|
||||
// ignore changes during tests
|
||||
new webpack.WatchIgnorePlugin([
|
||||
/\/ReDoc$/i, // ignore change of ReDoc folder itself
|
||||
/node_modules\/(?:[^\/]*(?:\/|$))*[^\/]*$/,
|
||||
/\.tmp\/(?:[^\/]*(?:\/|$))*[^\/]*$/,
|
||||
/dist\/(?:[^\/]*(?:\/|$))*[^\/]*$/,
|
||||
/(?:[^\/]*(?:\/|$))*[^\/]*\.css$/ // ignore css files
|
||||
])
|
||||
],
|
||||
}
|
||||
|
|
|
@ -19,12 +19,8 @@ module.exports = function (config) {
|
|||
},
|
||||
webpack: testWebpackConfig,
|
||||
webpackMiddleware: {
|
||||
stats: {
|
||||
modules: false,
|
||||
cached: false,
|
||||
chunk: false
|
||||
},
|
||||
noInfo: true
|
||||
stats: 'errors-only',
|
||||
state: true
|
||||
},
|
||||
client: {
|
||||
chai: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user