Commit 9376f9a8 authored by Evan You's avatar Evan You

small tweaks

parent 5aad15bb
const glob = require('glob')
const webpack = require('webpack')
const merge = require('webpack-merge')
const base = require('./webpack.base.config')
const glob = require('glob')
const SWPrecachePlugin = require('sw-precache-webpack-plugin')
const VueSSRClientPlugin = require('vue-server-renderer/client-plugin')
......@@ -51,9 +51,8 @@ if (process.env.NODE_ENV === 'production') {
dontCacheBustUrlsMatching: /./,
staticFileGlobsIgnorePatterns: [/index\.html$/, /\.map$/],
dynamicUrlToDependencies: {
'/top': [
...glob.sync('./dist/*.js')
]
'/': glob.sync('./dist/*.js'),
'/top': glob.sync('./dist/*.js')
}
})
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment