feat(map): 优化地图组件并添加新功能
- 注释掉部分地图图片以简化界面 - 为每个地图光标添加 data-title 属性 - 实现地图光标点击时显示详细信息的功能 - 添加新的 CSS 样式以美化光标描述 -优化 tabs 样式,添加渐变背景和圆角
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
const autoprefixer = require('autoprefixer')
|
||||
const pxtoviewport = require('postcss-px-to-viewport')
|
||||
const path = require('path')
|
||||
|
||||
const CompressionPlugin = require('compression-webpack-plugin')
|
||||
function resolve(dir) {
|
||||
return path.join(__dirname, dir)
|
||||
}
|
||||
@@ -65,5 +67,15 @@ module.exports = {
|
||||
return assetFilename.endsWith('.js')
|
||||
},
|
||||
})
|
||||
// config.plugins.push(
|
||||
// new CompressionPlugin({
|
||||
// filename: '[path][base].gz',
|
||||
// algorithm: 'gzip',
|
||||
// test: /\.(js|css|html|svg)$/,
|
||||
// threshold: 10240,
|
||||
// minRatio: 0.8,
|
||||
// deleteOriginalAssets: false,
|
||||
// })
|
||||
// )
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user