From 5f0a6aec3f48be1566fe1dfd5866dce64c8c4a03 Mon Sep 17 00:00:00 2001 From: BitDen Date: Sat, 11 Nov 2017 12:53:37 +0800 Subject: [PATCH] Added build before start testing --- package.json | 2 +- webpack/config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 10307bdd..6c057825 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "test": "grunt test", "dev": "concurrently --kill-others --raw \"grunt server\" \"grunt test\"", "build": "grunt build", - "webpack-test": "karma start test/config/karma.conf.js --single-run" + "webpack-test": "webpack --config webpack/config.js && karma start test/config/karma.conf.js --single-run" }, "devDependencies": { "babel-core": "^6.22.1", diff --git a/webpack/config.js b/webpack/config.js index 665c89d3..c39bfd60 100644 --- a/webpack/config.js +++ b/webpack/config.js @@ -10,8 +10,8 @@ module.exports = { path: path.join(__dirname, '../temp'), filename: '[name].js' }, - // cache: false, - // devtool: 'source-map', + cache: false, + devtool: 'source-map', module: { loaders: [{ test: /\.js$/,