tests fix

This commit is contained in:
Alexey Kasyanchuk
2018-04-06 17:40:51 +03:00
parent 0cdfd136c5
commit 1fd0e5fa49
3 changed files with 2827 additions and 3 deletions

View File

@ -4,7 +4,7 @@ const FriendlyErrorsWebpackPlugin = require("friendly-errors-webpack-plugin");
module.exports = env => {
return {
mode: env || 'development',
mode: env == 'test' ? 'production' : (env || 'development'),
target: "node",
node: {
__dirname: false,

2827
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -159,6 +159,7 @@
"sw-precache-webpack-plugin": "^0.11.5",
"url-loader": "^0.6.2",
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14",
"webpack-merge": "^4.1.2",
"webpack-node-externals": "^1.7.2"
}