Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli-service): Fix copy plugin's ignore pattern (fix #3119) #3130

Merged
merged 2 commits into from
Jan 7, 2019

Conversation

LinusBorg
Copy link
Member

don't skip files named index.html /public when nested in a subfolder. We only need to ignore the index.html directly under /public/index.html, which is used by html-webpack-plugin as a template.

close #3119

@@ -140,7 +140,7 @@ module.exports = (api, options) => {
const multiPageConfig = options.pages
const htmlPath = api.resolve('public/index.html')
const defaultHtmlPath = path.resolve(__dirname, 'index-default.html')
const publicCopyIgnore = ['index.html', '.DS_Store']
const publicCopyIgnore = ['/index.html', '.DS_Store']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we can just delete the '/index.html' pattern…
It doesn't match any files as I tested out. But it doesn't break anything because that html-webpack-plugin's output overwrites copy-webpack-plugin's anyway…

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, thought copy would run after the html plugin

@haoqunjiang haoqunjiang merged commit 8b4471e into dev Jan 7, 2019
@haoqunjiang haoqunjiang deleted the fix-3119-copy-index branch February 4, 2019 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple index.html files in public folder not being published in production
2 participants