Skip to content

Commit 9376f9a

Browse files
committed
small tweaks
1 parent 5aad15b commit 9376f9a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build/webpack.client.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
const glob = require('glob')
12
const webpack = require('webpack')
23
const merge = require('webpack-merge')
34
const base = require('./webpack.base.config')
4-
const glob = require('glob')
55
const SWPrecachePlugin = require('sw-precache-webpack-plugin')
66
const VueSSRClientPlugin = require('vue-server-renderer/client-plugin')
77

@@ -51,9 +51,8 @@ if (process.env.NODE_ENV === 'production') {
5151
dontCacheBustUrlsMatching: /./,
5252
staticFileGlobsIgnorePatterns: [/index\.html$/, /\.map$/],
5353
dynamicUrlToDependencies: {
54-
'/top': [
55-
...glob.sync('./dist/*.js')
56-
]
54+
'/': glob.sync('./dist/*.js'),
55+
'/top': glob.sync('./dist/*.js')
5756
}
5857
})
5958
)

0 commit comments

Comments
 (0)