mirror of https://github.com/webpack/webpack.git
Updates hash length tests to catch async chunk loading
This commit is contained in:
parent
c84bd70b76
commit
97780e1c16
|
|
@ -0,0 +1 @@
|
|||
module.exports = "chunk";
|
||||
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
}];
|
||||
|
|
|
|||
Loading…
Reference in New Issue