-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
clarkdo
commented
Aug 22, 2018
•
edited by Atinux
edited by Atinux
- Update document
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
lib/common/nuxt.config.js
Outdated
font: 'fonts/[name].[hash:7].[ext]', | ||
video: 'videos/[name].[hash:7].[ext]' | ||
// { isDev, isClient, isServer } | ||
app: ({ isDev }) => isDev ? '[path][name].js' : '[contenthash].js', |
There was a problem hiding this comment.
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?
lib/builder/webpack/base.js
Outdated
} | ||
return this.normalizeFileName(fileName) | ||
if (this.options.dev) { |
There was a problem hiding this comment.
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))
?
@clarkdo Is it included in the 2.0 docs yet? 🤔 |
@clarkdo Thank you |
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. |