We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aad15b commit 9376f9aCopy full SHA for 9376f9a
build/webpack.client.config.js
@@ -1,7 +1,7 @@
1
+const glob = require('glob')
2
const webpack = require('webpack')
3
const merge = require('webpack-merge')
4
const base = require('./webpack.base.config')
-const glob = require('glob')
5
const SWPrecachePlugin = require('sw-precache-webpack-plugin')
6
const VueSSRClientPlugin = require('vue-server-renderer/client-plugin')
7
@@ -51,9 +51,8 @@ if (process.env.NODE_ENV === 'production') {
51
dontCacheBustUrlsMatching: /./,
52
staticFileGlobsIgnorePatterns: [/index\.html$/, /\.map$/],
53
dynamicUrlToDependencies: {
54
- '/top': [
55
- ...glob.sync('./dist/*.js')
56
- ]
+ '/': glob.sync('./dist/*.js'),
+ '/top': glob.sync('./dist/*.js')
57
}
58
})
59
)
0 commit comments