|
|
@@ -7,6 +7,7 @@ const port = process.env.port || 9527
|
|
|
const isProd = process.env.NODE_ENV !== 'development'
|
|
|
|
|
|
const features = {
|
|
|
+ __VERSION__: JSON.stringify(`v${require('./package.json').version}.${getTimestamp()}`),
|
|
|
// 未开发完的路由
|
|
|
__DEV__: !isProd,
|
|
|
// 未开发的功能组件
|
|
|
@@ -14,7 +15,7 @@ const features = {
|
|
|
// 可删除已提交审核的数据
|
|
|
__DELETABLE_FOR_ADMIN__: true,
|
|
|
// 传感器
|
|
|
- __SENSOR__: !isProd || true,
|
|
|
+ __SENSOR__: !isProd || false,
|
|
|
__IMDS_ELK__: false
|
|
|
}
|
|
|
|
|
|
@@ -34,6 +35,11 @@ function getCopyFiles () {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+function getTimestamp () {
|
|
|
+ const now = new Date()
|
|
|
+ return `${now.getFullYear()}${(now.getMonth() + 1).toString().padStart(2, '0')}${now.getDate().toString().padStart(2, '0')}${now.getHours().toString().padStart(2, '0')}${now.getMinutes().toString().padStart(2, '0')}${now.getSeconds().toString().padStart(2, '0')}`
|
|
|
+}
|
|
|
+
|
|
|
module.exports = {
|
|
|
publicPath: '/',
|
|
|
outputDir: 'dist',
|