mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
feat: hash the webpack-compiled js file
This commit is contained in:
parent
d33343b7c6
commit
ea706d2830
2 changed files with 32 additions and 1 deletions
|
@ -20,7 +20,7 @@ module.exports = function createBaseConfig(props) {
|
|||
config
|
||||
.mode(isProd ? 'production' : 'development')
|
||||
.output.path(outDir)
|
||||
.filename(isProd ? 'bundle.js' : '[name].js')
|
||||
.filename(isProd ? '[name].[chunkhash].js' : '[name].js')
|
||||
.publicPath(isProd ? baseUrl : '/');
|
||||
|
||||
if (!isProd) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue