Commit 057b877f authored by Dannon Baker's avatar Dannon Baker
Browse files

Use same Date object for internal and external timestamps (was probably close enough, but...)

parent 65122151
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@ const modulesExcludedFromLibs = [
    "citeproc",
].join("|");

const buildDate = new Date();

module.exports = (env = {}, argv = {}) => {
    // environment name based on -d, -p, webpack flag
    const targetEnv = process.env.NODE_ENV == "production" || argv.mode == "production" ? "production" : "development";
@@ -194,7 +196,7 @@ module.exports = (env = {}, argv = {}) => {
            }),
            new webpack.DefinePlugin({
                __targetEnv__: JSON.stringify(targetEnv),
                __buildTimestamp__: JSON.stringify(new Date().toISOString()),
                __buildTimestamp__: JSON.stringify(buildDate.toISOString()),
            }),
            new VueLoaderPlugin(),
            new MiniCssExtractPlugin({
@@ -206,7 +208,7 @@ module.exports = (env = {}, argv = {}) => {
                prepare: (stats) => ({
                    // add any other information you need to dump
                    hash: stats.hash,
                    epoch: Date.now(),
                    epoch: Date.parse(buildDate),
                }),
            }),
        ],