缓存问题
This commit is contained in:
+4
-3
@@ -5,9 +5,10 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<meta http-equiv="pragram" content="no-cache">
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
<title>标准法规管理系统</title>
|
||||
<script src="static/polyfill/proxy.min.js"></script>
|
||||
<style>
|
||||
|
||||
+4
-4
@@ -53,11 +53,11 @@ module.exports = {
|
||||
.set('process', resolve('./src/pages/processCenter/pages'))
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
// 给js和css配置版本号
|
||||
config.output.filename('js/[name].' + Timestamp + '.js').end();
|
||||
config.output.chunkFilename('js/[name].' + Timestamp + '.js').end();
|
||||
config.output.filename('js/[name].' + Timestamp + '.js?v=' + Timestamp).end();
|
||||
config.output.chunkFilename('js/[name].' + Timestamp + '.js?v=' + Timestamp).end();
|
||||
config.plugin('extract-css').tap(args => [{
|
||||
filename: `css/[name].${Timestamp}.css`,
|
||||
chunkFilename: `css/[name].${Timestamp}.css`
|
||||
filename: `css/[name].${Timestamp}.css?v=` + Timestamp,
|
||||
chunkFilename: `css/[name].${Timestamp}.css?v=` + Timestamp
|
||||
}])
|
||||
|
||||
config.optimization
|
||||
|
||||
Reference in New Issue
Block a user