Moved to testing from webpack.production.config also added verbose logging.

This commit is contained in:
orangemug 2017-11-07 18:13:06 +00:00
parent 203aaf51b7
commit a819154145

View file

@ -1,6 +1,6 @@
var webpack = require("webpack"); var webpack = require("webpack");
var WebpackDevServer = require("webpack-dev-server"); var WebpackDevServer = require("webpack-dev-server");
var webpackConfig = require("./webpack.config"); var webpackConfig = require("./webpack.production.config");
var testConfig = require("../test/config/specs"); var testConfig = require("../test/config/specs");
@ -18,7 +18,7 @@ exports.config = {
browserName: 'firefox' browserName: 'firefox'
}], }],
sync: true, sync: true,
logLevel: 'silent', logLevel: 'verbose',
coloredLogs: true, coloredLogs: true,
bail: 0, bail: 0,
screenshotPath: './errorShots/', screenshotPath: './errorShots/',
@ -36,9 +36,7 @@ exports.config = {
}, },
onPrepare: function (config, capabilities) { onPrepare: function (config, capabilities) {
var compiler = webpack(webpackConfig); var compiler = webpack(webpackConfig);
server = new WebpackDevServer(compiler, { server = new WebpackDevServer(compiler, {});
stats: "minimal"
});
server.listen(testConfig.port); server.listen(testConfig.port);
}, },
onComplete: function(exitCode) { onComplete: function(exitCode) {