@@ -102,17 +102,19 @@ describe('Functional tests using webpack', function() {
102
102
) ;
103
103
104
104
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
105
- main : {
106
- js : [ 'build/runtime.js' , 'build/main.js' ]
107
- } ,
108
- font : {
109
- js : [ 'build/runtime.js' ] ,
110
- css : [ 'build/font.css' ]
111
- } ,
112
- bg : {
113
- js : [ 'build/runtime.js' ] ,
114
- css : [ 'build/bg.css' ]
115
- } ,
105
+ entrypoints : {
106
+ main : {
107
+ js : [ 'build/runtime.js' , 'build/main.js' ]
108
+ } ,
109
+ font : {
110
+ js : [ 'build/runtime.js' ] ,
111
+ css : [ 'build/font.css' ]
112
+ } ,
113
+ bg : {
114
+ js : [ 'build/runtime.js' ] ,
115
+ css : [ 'build/bg.css' ]
116
+ }
117
+ }
116
118
} ) ;
117
119
118
120
done ( ) ;
@@ -131,14 +133,16 @@ describe('Functional tests using webpack', function() {
131
133
132
134
testSetup . runWebpack ( config , ( webpackAssert ) => {
133
135
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
134
- main : {
135
- js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main~other.js' , 'build/main.js' ] ,
136
- css : [ 'build/main~other.css' ]
137
- } ,
138
- other : {
139
- js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main~other.js' , 'build/other.js' ] ,
140
- css : [ 'build/main~other.css' ]
141
- } ,
136
+ entrypoints : {
137
+ main : {
138
+ js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main~other.js' , 'build/main.js' ] ,
139
+ css : [ 'build/main~other.css' ]
140
+ } ,
141
+ other : {
142
+ js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main~other.js' , 'build/other.js' ] ,
143
+ css : [ 'build/main~other.css' ]
144
+ }
145
+ }
142
146
} ) ;
143
147
144
148
done ( ) ;
@@ -689,14 +693,16 @@ describe('Functional tests using webpack', function() {
689
693
// make sure runtime.js is here
690
694
// but the _tmp_shared entry is NOT here
691
695
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
692
- main : {
693
- js : [ 'build/runtime.js' , 'build/shared.js' , 'build/main.js' ] ,
694
- css : [ 'build/shared.css' ]
695
- } ,
696
- other : {
697
- js : [ 'build/runtime.js' , 'build/shared.js' , 'build/other.js' ] ,
698
- css : [ 'build/shared.css' ]
699
- } ,
696
+ entrypoints : {
697
+ main : {
698
+ js : [ 'build/runtime.js' , 'build/shared.js' , 'build/main.js' ] ,
699
+ css : [ 'build/shared.css' ]
700
+ } ,
701
+ other : {
702
+ js : [ 'build/runtime.js' , 'build/shared.js' , 'build/other.js' ] ,
703
+ css : [ 'build/shared.css' ]
704
+ }
705
+ }
700
706
} ) ;
701
707
702
708
testSetup . requestTestPage (
@@ -1613,14 +1619,16 @@ module.exports = {
1613
1619
1614
1620
testSetup . runWebpack ( config , ( webpackAssert ) => {
1615
1621
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
1616
- main : {
1617
- js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main~other.js' , 'build/main.js' ] ,
1618
- css : [ 'build/main~other.css' ]
1619
- } ,
1620
- other : {
1621
- js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main~other.js' , 'build/other.js' ] ,
1622
- css : [ 'build/main~other.css' ]
1623
- } ,
1622
+ entrypoints : {
1623
+ main : {
1624
+ js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main~other.js' , 'build/main.js' ] ,
1625
+ css : [ 'build/main~other.css' ]
1626
+ } ,
1627
+ other : {
1628
+ js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main~other.js' , 'build/other.js' ] ,
1629
+ css : [ 'build/main~other.css' ]
1630
+ }
1631
+ }
1624
1632
} ) ;
1625
1633
1626
1634
// make split chunks are correct in manifest
@@ -1643,24 +1651,26 @@ module.exports = {
1643
1651
1644
1652
testSetup . runWebpack ( config , ( webpackAssert ) => {
1645
1653
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
1646
- main : {
1647
- js : [
1648
- 'http://localhost:8080/build/runtime.js' ,
1649
- 'http://localhost:8080/build/vendors~main~other.js' ,
1650
- 'http://localhost:8080/build/main~other.js' ,
1651
- 'http://localhost:8080/build/main.js'
1652
- ] ,
1653
- css : [ 'http://localhost:8080/build/main~other.css' ]
1654
- } ,
1655
- other : {
1656
- js : [
1657
- 'http://localhost:8080/build/runtime.js' ,
1658
- 'http://localhost:8080/build/vendors~main~other.js' ,
1659
- 'http://localhost:8080/build/main~other.js' ,
1660
- 'http://localhost:8080/build/other.js'
1661
- ] ,
1662
- css : [ 'http://localhost:8080/build/main~other.css' ]
1663
- } ,
1654
+ entrypoints : {
1655
+ main : {
1656
+ js : [
1657
+ 'http://localhost:8080/build/runtime.js' ,
1658
+ 'http://localhost:8080/build/vendors~main~other.js' ,
1659
+ 'http://localhost:8080/build/main~other.js' ,
1660
+ 'http://localhost:8080/build/main.js'
1661
+ ] ,
1662
+ css : [ 'http://localhost:8080/build/main~other.css' ]
1663
+ } ,
1664
+ other : {
1665
+ js : [
1666
+ 'http://localhost:8080/build/runtime.js' ,
1667
+ 'http://localhost:8080/build/vendors~main~other.js' ,
1668
+ 'http://localhost:8080/build/main~other.js' ,
1669
+ 'http://localhost:8080/build/other.js'
1670
+ ] ,
1671
+ css : [ 'http://localhost:8080/build/main~other.css' ]
1672
+ }
1673
+ }
1664
1674
} ) ;
1665
1675
1666
1676
// make split chunks are correct in manifest
@@ -1683,14 +1693,16 @@ module.exports = {
1683
1693
testSetup . runWebpack ( config , ( webpackAssert ) => {
1684
1694
// in production, we hash the chunk names to avoid exposing any extra details
1685
1695
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
1686
- main : {
1687
- js : [ 'build/runtime.js' , 'build/vendors~cc515e6e.js' , 'build/default~cc515e6e.js' , 'build/main.js' ] ,
1688
- css : [ 'build/default~cc515e6e.css' ]
1689
- } ,
1690
- other : {
1691
- js : [ 'build/runtime.js' , 'build/vendors~cc515e6e.js' , 'build/default~cc515e6e.js' , 'build/other.js' ] ,
1692
- css : [ 'build/default~cc515e6e.css' ]
1693
- } ,
1696
+ entrypoints : {
1697
+ main : {
1698
+ js : [ 'build/runtime.js' , 'build/vendors~cc515e6e.js' , 'build/default~cc515e6e.js' , 'build/main.js' ] ,
1699
+ css : [ 'build/default~cc515e6e.css' ]
1700
+ } ,
1701
+ other : {
1702
+ js : [ 'build/runtime.js' , 'build/vendors~cc515e6e.js' , 'build/default~cc515e6e.js' , 'build/other.js' ] ,
1703
+ css : [ 'build/default~cc515e6e.css' ]
1704
+ }
1705
+ }
1694
1706
} ) ;
1695
1707
1696
1708
// make split chunks are correct in manifest
@@ -1712,14 +1724,16 @@ module.exports = {
1712
1724
1713
1725
testSetup . runWebpack ( config , ( webpackAssert ) => {
1714
1726
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
1715
- main : {
1716
- js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main.js' ]
1717
- } ,
1718
- other : {
1719
- // the 0.[hash].js is because the "no_require" module was already split to this
1720
- // so, it has that filename, instead of following the normal pattern
1721
- js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/0.js' , 'build/other.js' ]
1722
- } ,
1727
+ entrypoints : {
1728
+ main : {
1729
+ js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/main.js' ]
1730
+ } ,
1731
+ other : {
1732
+ // the 0.[hash].js is because the "no_require" module was already split to this
1733
+ // so, it has that filename, instead of following the normal pattern
1734
+ js : [ 'build/runtime.js' , 'build/vendors~main~other.js' , 'build/0.js' , 'build/other.js' ]
1735
+ }
1736
+ }
1723
1737
} ) ;
1724
1738
1725
1739
// make split chunks are correct in manifest
0 commit comments