|
|
@ -1,15 +1,14 @@ |
|
|
|
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV); |
|
|
|
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV); |
|
|
|
const path = require('path'); |
|
|
|
const path = require('path'); |
|
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); |
|
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); |
|
|
|
|
|
|
|
const dateFormat = require("./src/utils/format.js"); |
|
|
|
|
|
|
|
const CompressionWebpackPlugin = require('compression-webpack-plugin'); |
|
|
|
|
|
|
|
const argv = process.argv; |
|
|
|
|
|
|
|
|
|
|
|
function resolve(dir) { |
|
|
|
function resolve(dir) { |
|
|
|
return path.join(__dirname, dir); |
|
|
|
return path.join(__dirname, dir); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const argv = process.argv; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const CompressionWebpackPlugin = require('compression-webpack-plugin'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const compress = new CompressionWebpackPlugin( |
|
|
|
const compress = new CompressionWebpackPlugin( |
|
|
|
{ |
|
|
|
{ |
|
|
|
filename: info => { |
|
|
|
filename: info => { |
|
|
@ -90,6 +89,7 @@ for (const key of Object.keys(pages)) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const version='2.3.8'; |
|
|
|
const version='2.3.8'; |
|
|
|
|
|
|
|
const github = 'https://github.com/nineaiyu/FlyApps'; |
|
|
|
|
|
|
|
|
|
|
|
const pro_base_env = { |
|
|
|
const pro_base_env = { |
|
|
|
baseUrl: '/', //该选项可以填写web-api的域名,类似 https://api.xxx.com/
|
|
|
|
baseUrl: '/', //该选项可以填写web-api的域名,类似 https://api.xxx.com/
|
|
|
@ -164,8 +164,9 @@ module.exports = { |
|
|
|
args[0]['process.env']['base_env'] = JSON.stringify({ |
|
|
|
args[0]['process.env']['base_env'] = JSON.stringify({ |
|
|
|
baseUrl: base_evn.baseUrl, |
|
|
|
baseUrl: base_evn.baseUrl, |
|
|
|
baseShortUrl: base_evn.baseShortUrl, |
|
|
|
baseShortUrl: base_evn.baseShortUrl, |
|
|
|
version: base_evn.version, |
|
|
|
version: dateFormat("yyyyMMdd.hhmmss") + '.' + base_evn.version, |
|
|
|
footer: base_evn.footer_info |
|
|
|
footer: base_evn.footer_info, |
|
|
|
|
|
|
|
github |
|
|
|
}); |
|
|
|
}); |
|
|
|
return args |
|
|
|
return args |
|
|
|
}); |
|
|
|
}); |
|
|
|