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

feat: new filenames structure #3789

Merged
merged 5 commits into from
Aug 22, 2018
Merged

feat: new filenames structure #3789

merged 5 commits into from
Aug 22, 2018

Conversation

clarkdo
Copy link
Member

@clarkdo clarkdo commented Aug 22, 2018

  • Update document

@clarkdo clarkdo requested review from pi0 and Atinux August 22, 2018 19:33
@codecov-io
Copy link

codecov-io commented Aug 22, 2018

Codecov Report

Merging #3789 into dev will decrease coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #3789      +/-   ##
==========================================
- Coverage   97.84%   97.76%   -0.08%     
==========================================
  Files          18       18              
  Lines        1159     1165       +6     
  Branches      312      318       +6     
==========================================
+ Hits         1134     1139       +5     
- Misses         24       25       +1     
  Partials        1        1
Impacted Files Coverage Δ
lib/common/nuxt.config.js 100% <100%> (ø) ⬆️
lib/builder/webpack/base.js 98.36% <100%> (ø) ⬆️
lib/core/nuxt.js 94.05% <0%> (-1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 22559a8...c69e97c. Read the comment docs.

font: 'fonts/[name].[hash:7].[ext]',
video: 'videos/[name].[hash:7].[ext]'
// { isDev, isClient, isServer }
app: ({ isDev }) => isDev ? '[path][name].js' : '[contenthash].js',
Copy link
Member

Choose a reason for hiding this comment

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

Can we use chunkhash for app and chunk?

}
return this.normalizeFileName(fileName)
if (this.options.dev) {
Copy link
Member

Choose a reason for hiding this comment

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

What about if (this.options.dev && /\[(chunkhash|contenthash|hash)(?::(\d+))?\]/.test(fileName))?

@Atinux Atinux merged commit 567dc86 into nuxt:dev Aug 22, 2018
@manniL
Copy link
Member

manniL commented Sep 3, 2018

@clarkdo Is it included in the 2.0 docs yet? 🤔

@clarkdo
Copy link
Member Author

clarkdo commented Sep 3, 2018

@manniL nuxt/docs@1eca53b

@manniL
Copy link
Member

manniL commented Sep 3, 2018

@clarkdo Thank you ☺️

@lock
Copy link

lock bot commented Oct 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 31, 2018
@clarkdo clarkdo deleted the filenames branch April 2, 2019 13:08
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants