@@ -41,3 +41,9 @@ for (const nm of JsFiles.needMin) {
const needMinFileName = __dirname + '/app/public/js/web/global.' + version + '.min.js';
fs.writeFileSync(needMinFileName, Uglyfy.minify(needMinCode, { mangle: true }).code);
+const needVersionCss = ['/public/css/main'];
+for (const nvc of needVersionCss) {
+ fs.copyFileSync(nvc + '.css', nvc + '.' + version + '.css');
+}
+
@@ -133,7 +133,6 @@ module.exports = appInfo => {
config.min = true;
const file = path.join(__dirname, 'version');
- console.log(file);
if (fs.existsSync(file)) {
const versionStr = fs.readFileSync(file, 'utf8');