Updates hash length tests to catch async chunk loading

This commit is contained in:
Jason Anderson 2014-10-28 12:24:26 +01:00
parent c84bd70b76
commit 97780e1c16
3 changed files with 10 additions and 4 deletions

View File

@ -0,0 +1 @@
module.exports = "chunk";

View File

@ -1,3 +1,6 @@
it("should compile and run the test", function () {
it("should compile and run the test", function (done) {
require(['./chunk'], function () {
it("should load additional chunks", function () {});
done();
});
});

View File

@ -8,10 +8,12 @@ module.exports = [{
}
}, {
output: {
filename: 'bundle.[chunkhash:8].js'
filename: 'bundle.[hash].js',
chunkFilename: '[id].bundle.[hash:8].js'
}
}, {
output: {
filename: 'bundle.[chunkhash].js'
filename: 'bundle.[hash:6].js',
chunkFilename: '[id].bundle.[hash:8].js'
}
}];