@@ -103,17 +103,17 @@ describe('Functional tests using webpack', function() {
103
103
104
104
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
105
105
main : {
106
- js : [ 'runtime.js' , 'main.js' ] ,
106
+ js : [ 'build/ runtime.js' , 'build/ main.js' ] ,
107
107
css : [ ]
108
108
} ,
109
109
font : {
110
110
// no runtime for style entries
111
111
js : [ ] ,
112
- css : [ 'font.css' ]
112
+ css : [ 'build/ font.css' ]
113
113
} ,
114
114
bg : {
115
115
js : [ ] ,
116
- css : [ 'bg.css' ]
116
+ css : [ 'build/ bg.css' ]
117
117
} ,
118
118
} ) ;
119
119
@@ -134,12 +134,12 @@ describe('Functional tests using webpack', function() {
134
134
testSetup . runWebpack ( config , ( webpackAssert ) => {
135
135
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
136
136
main : {
137
- js : [ 'runtime.js' , 'vendors~main~other.js' , 'main~other.js' , 'main.js' ] ,
138
- css : [ 'main~other.css' ]
137
+ js : [ 'build/ runtime.js' , 'build/ vendors~main~other.js' , 'build/ main~other.js' , 'build/ main.js' ] ,
138
+ css : [ 'build/ main~other.css' ]
139
139
} ,
140
140
other : {
141
- js : [ 'runtime.js' , 'vendors~main~other.js' , 'main~other.js' , 'other.js' ] ,
142
- css : [ 'main~other.css' ]
141
+ js : [ 'build/ runtime.js' , 'build/ vendors~main~other.js' , 'build/ main~other.js' , 'build/ other.js' ] ,
142
+ css : [ 'build/ main~other.css' ]
143
143
} ,
144
144
} ) ;
145
145
@@ -692,12 +692,12 @@ describe('Functional tests using webpack', function() {
692
692
// but the _tmp_shared entry is NOT here
693
693
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
694
694
main : {
695
- js : [ 'runtime.js' , 'shared.js' , 'main.js' ] ,
696
- css : [ 'shared.css' ]
695
+ js : [ 'build/ runtime.js' , 'build/ shared.js' , 'build/ main.js' ] ,
696
+ css : [ 'build/ shared.css' ]
697
697
} ,
698
698
other : {
699
- js : [ 'runtime.js' , 'shared.js' , 'other.js' ] ,
700
- css : [ 'shared.css' ]
699
+ js : [ 'build/ runtime.js' , 'build/ shared.js' , 'build/ other.js' ] ,
700
+ css : [ 'build/ shared.css' ]
701
701
} ,
702
702
} ) ;
703
703
@@ -1318,12 +1318,12 @@ module.exports = {
1318
1318
testSetup . runWebpack ( config , ( webpackAssert ) => {
1319
1319
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
1320
1320
main : {
1321
- js : [ 'runtime.js' , 'vendors~main~other.js' , 'main~other.js' , 'main.js' ] ,
1322
- css : [ 'main~other.css' ]
1321
+ js : [ 'build/ runtime.js' , 'build/ vendors~main~other.js' , 'build/ main~other.js' , 'build/ main.js' ] ,
1322
+ css : [ 'build/ main~other.css' ]
1323
1323
} ,
1324
1324
other : {
1325
- js : [ 'runtime.js' , 'vendors~main~other.js' , 'main~other.js' , 'other.js' ] ,
1326
- css : [ 'main~other.css' ]
1325
+ js : [ 'build/ runtime.js' , 'build/ vendors~main~other.js' , 'build/ main~other.js' , 'build/ other.js' ] ,
1326
+ css : [ 'build/ main~other.css' ]
1327
1327
} ,
1328
1328
} ) ;
1329
1329
@@ -1334,7 +1334,7 @@ module.exports = {
1334
1334
} ) ;
1335
1335
} ) ;
1336
1336
1337
- it ( 'Custom public path does not affect entrypoints.json or manifest.json' , ( done ) => {
1337
+ it ( 'Custom public path does affect entrypoints.json or manifest.json' , ( done ) => {
1338
1338
const config = createWebpackConfig ( 'web/build' , 'dev' ) ;
1339
1339
config . addEntry ( 'main' , [ './css/roboto_font.css' , './js/no_require' , 'vue' ] ) ;
1340
1340
config . addEntry ( 'other' , [ './css/roboto_font.css' , 'vue' ] ) ;
@@ -1348,12 +1348,12 @@ module.exports = {
1348
1348
testSetup . runWebpack ( config , ( webpackAssert ) => {
1349
1349
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
1350
1350
main : {
1351
- js : [ 'runtime.js' , 'vendors~main~other.js' , 'main~other.js' , 'main.js' ] ,
1352
- css : [ 'main~other.css' ]
1351
+ js : [ 'custom_prefix/ runtime.js' , 'custom_prefix/ vendors~main~other.js' , 'custom_prefix/ main~other.js' , 'custom_prefix/ main.js' ] ,
1352
+ css : [ 'custom_prefix/ main~other.css' ]
1353
1353
} ,
1354
1354
other : {
1355
- js : [ 'runtime.js' , 'vendors~main~other.js' , 'main~other.js' , 'other.js' ] ,
1356
- css : [ 'main~other.css' ]
1355
+ js : [ 'custom_prefix/ runtime.js' , 'custom_prefix/ vendors~main~other.js' , 'custom_prefix/ main~other.js' , 'custom_prefix/ other.js' ] ,
1356
+ css : [ 'custom_prefix/ main~other.css' ]
1357
1357
} ,
1358
1358
} ) ;
1359
1359
@@ -1378,12 +1378,12 @@ module.exports = {
1378
1378
// in production, we hash the chunk names to avoid exposing any extra details
1379
1379
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
1380
1380
main : {
1381
- js : [ 'runtime.js' , 'vendors~cc515e6e.js' , 'default~cc515e6e.js' , 'main.js' ] ,
1382
- css : [ 'default~cc515e6e.css' ]
1381
+ js : [ 'build/ runtime.js' , 'build/ vendors~cc515e6e.js' , 'build/ default~cc515e6e.js' , 'build/ main.js' ] ,
1382
+ css : [ 'build/ default~cc515e6e.css' ]
1383
1383
} ,
1384
1384
other : {
1385
- js : [ 'runtime.js' , 'vendors~cc515e6e.js' , 'default~cc515e6e.js' , 'other.js' ] ,
1386
- css : [ 'default~cc515e6e.css' ]
1385
+ js : [ 'build/ runtime.js' , 'build/ vendors~cc515e6e.js' , 'build/ default~cc515e6e.js' , 'build/ other.js' ] ,
1386
+ css : [ 'build/ default~cc515e6e.css' ]
1387
1387
} ,
1388
1388
} ) ;
1389
1389
@@ -1409,13 +1409,13 @@ module.exports = {
1409
1409
testSetup . runWebpack ( config , ( webpackAssert ) => {
1410
1410
webpackAssert . assertOutputJsonFileMatches ( 'entrypoints.json' , {
1411
1411
main : {
1412
- js : [ 'runtime.js' , 'vendors~main~other.js' , 'main.js' ] ,
1412
+ js : [ 'build/ runtime.js' , 'build/ vendors~main~other.js' , 'build/ main.js' ] ,
1413
1413
css : [ ]
1414
1414
} ,
1415
1415
other : {
1416
1416
// the 0.[hash].js is because the "no_require" module was already split to this
1417
1417
// so, it has that filename, instead of following the normal pattern
1418
- js : [ 'runtime.js' , 'vendors~main~other.js' , '0.f1e0a935.js' , 'other.js' ] ,
1418
+ js : [ 'build/ runtime.js' , 'build/ vendors~main~other.js' , 'build/ 0.f1e0a935.js' , 'build/ other.js' ] ,
1419
1419
css : [ ]
1420
1420
} ,
1421
1421
} ) ;
0 commit comments