From 9182794b669230a0bb554ebad6187822eec0e9c8 Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Wed, 1 Sep 2021 22:15:57 +0200 Subject: [PATCH] Install moment.js --- package.json | 1 + resources/js/bootstrap.js | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/package.json b/package.json index de566c1..0a81a16 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "axios": "^0.21", "laravel-mix": "^6.0.6", "lodash": "^4.17.19", + "moment": "^2.29.1", "postcss": "^8.1.14", "resolve-url-loader": "^4.0.0", "sass": "^1.38.2", diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 6922577..4e01a36 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -1,4 +1,5 @@ window._ = require('lodash'); +window.moment = require('moment'); /** * We'll load the axios HTTP library which allows us to easily issue requests diff --git a/yarn.lock b/yarn.lock index 6865257..07b96fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3690,6 +3690,11 @@ mkdirp@^0.5.5: dependencies: minimist "^1.2.5" +moment@^2.29.1: + version "2.29.1" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3" + integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ== + ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"