File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 2
2
ENV = ' production'
3
3
4
4
# base api
5
- VUE_APP_BASE_API = ' / '
5
+ VUE_APP_BASE_API = ' http://www.zhangwj.com:8000 '
6
6
Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ export default {
9
9
name: ' App'
10
10
}
11
11
</script >
12
+ <script >
13
+ var _hmt = _hmt || [];
14
+ (function () {
15
+ var hm = document .createElement (" script" );
16
+ hm .src = " https://hm.baidu.com/hm.js?1d2d61263f13e4b288c8da19ad3ff56d" ;
17
+ var s = document .getElementsByTagName (" script" )[0 ];
18
+ s .parentNode .insertBefore (hm, s);
19
+ })();
20
+ </script >
12
21
13
22
<style lang="scss">
14
23
.el-dialog__wrapper {
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
const path = require ( 'path' )
3
- const CompressionPlugin = require ( 'compression-webpack-plugin' ) ; // 引入gzip压缩插件
3
+ const CompressionPlugin = require ( 'compression-webpack-plugin' ) // 引入gzip压缩插件
4
4
const defaultSettings = require ( './src/settings.js' )
5
5
6
6
function resolve ( dir ) {
@@ -28,7 +28,7 @@ module.exports = {
28
28
* Detail: https://cli.vuejs.org/config/#publicpath
29
29
*/
30
30
publicPath : '/' ,
31
- outputDir : '../service/view/admin ' ,
31
+ outputDir : 'dist ' ,
32
32
// assetsDir: '../../static/admin',
33
33
// assetsDir: '/',
34
34
lintOnSave : false , // process.env.NODE_ENV === 'development',
@@ -45,12 +45,12 @@ module.exports = {
45
45
plugins : [
46
46
new CompressionPlugin ( {
47
47
algorithm : 'gzip' ,
48
- test :/ \. j s $ | \. h t m l $ | \. c s s / , // 匹配文件名
49
- threshold :10240 , // 对超过10kb的数据进行压缩
50
- deleteOriginalAssets :false , // 是否删除原文件
48
+ test : / \. j s $ | \. h t m l $ | \. c s s / , // 匹配文件名
49
+ threshold : 10240 , // 对超过10kb的数据进行压缩
50
+ deleteOriginalAssets : false , // 是否删除原文件
51
51
minRatio : 0.8
52
52
} ) ,
53
- new MonacoWebpackPlugin ( ) ,
53
+ new MonacoWebpackPlugin ( )
54
54
] ,
55
55
name : name ,
56
56
resolve : {
You can’t perform that action at this time.
0 commit comments