Skip to content

Commit b535ac1

Browse files
committed
Trying do rebuild after changes in ./src
1 parent f5ceb4b commit b535ac1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prod-build": "webpack --config webpack/config.js",
2323
"prod-test": "karma start test/config/karma.conf.js",
2424
"dev-build": "webpack --config webpack/config.js",
25-
"dev-test": "karma start test/config/karma.conf.js",
25+
"dev-test": "npm run dev-build && karma start test/config/karma.conf.js",
2626
"test": "concurrently --kill-others --raw \"npm run dev-build\" \"npm run dev-test\"",
2727
"build": "npm run prod-build && npm run prod-test"
2828
},

test/config/karma.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ const firefox = 'Firefox';
33
const ie = 'IE';
44

55
const ENV = (process.env.npm_lifecycle_event.indexOf('dev') === 0) ? 'development' : 'production';
6+
let webpackConfig = require('../../webpack/config.js');
7+
// webpackConfig.entry = null;
8+
webpackConfig.plugins = [];
69

710
module.exports = function (config) {
811
config.set({
@@ -24,7 +27,7 @@ module.exports = function (config) {
2427
'../../src/*.js': ['webpack']
2528
},
2629

27-
webpack: {},
30+
webpack: webpackConfig,
2831

2932
exclude: [],
3033

webpack/config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = {
8686
options: {
8787
presets: ['es2015']
8888
}
89-
},
89+
},
9090
{
9191
enforce: 'pre',
9292
test: /\.js$/,
@@ -106,5 +106,6 @@ module.exports = {
106106
new webpack.BannerPlugin(getBanner(configEnv.compressing))
107107
],
108108

109-
watch: configEnv.watch
109+
// watch: configEnv.watch
110+
watch: false
110111
};

0 commit comments

Comments
 (0)