diff --git a/scripts/build.js b/scripts/build.js index c651824..3c97a14 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -4,6 +4,7 @@ import imagemin from 'imagemin'; import imageminPngquant from 'imagemin-pngquant'; import replace from 'replace-in-file'; import fs from 'fs-extra'; +import pkg from "../package.json" assert { type: 'json' }; fs.mkdirp('./tmp/assets'); fs.emptyDirSync('./tmp/assets'); @@ -36,10 +37,12 @@ fs.emptyDirSync('./tmp/assets'); }); fs.readFile('./src/starline.html', 'utf8', function(err, contents) { + const versionTag = `