File tree 2 files changed +4
-1
lines changed
packages/@vue/cli-service
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ test('build', async () => {
13
13
14
14
// test public copy
15
15
project . write ( 'public/foo.js' , '1' )
16
+ // make sure that only /public/index.html is skipped (#3119)
17
+ project . write ( 'public/subfolder/index.html' , '1' )
16
18
17
19
const { stdout } = await project . run ( 'vue-cli-service build' )
18
20
expect ( stdout ) . toMatch ( 'Build complete.' )
@@ -22,6 +24,7 @@ test('build', async () => {
22
24
expect ( project . has ( 'dist/js' ) ) . toBe ( true )
23
25
expect ( project . has ( 'dist/css' ) ) . toBe ( true )
24
26
expect ( project . has ( 'dist/foo.js' ) ) . toBe ( true )
27
+ expect ( project . has ( 'dist/subfolder/index.html' ) ) . toBe ( true )
25
28
26
29
const index = await project . read ( 'dist/index.html' )
27
30
// should split and preload app.js & vendor.js
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ module.exports = (api, options) => {
140
140
const multiPageConfig = options . pages
141
141
const htmlPath = api . resolve ( 'public/index.html' )
142
142
const defaultHtmlPath = path . resolve ( __dirname , 'index-default.html' )
143
- const publicCopyIgnore = [ 'index.html' , '.DS_Store' ]
143
+ const publicCopyIgnore = [ '/ index.html' , '.DS_Store' ]
144
144
145
145
if ( ! multiPageConfig ) {
146
146
// default, single page setup.
You can’t perform that action at this time.
0 commit comments