From 18c55ed56d8e16dc5e78abb29455865ef2ad57cc Mon Sep 17 00:00:00 2001 From: Robbie Cronin Date: Wed, 8 May 2019 17:49:34 +0800 Subject: add moment.js to webpack config --- webpack.config.d/moment.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 webpack.config.d/moment.js (limited to 'webpack.config.d/moment.js') diff --git a/webpack.config.d/moment.js b/webpack.config.d/moment.js new file mode 100644 index 00000000..e8db2ea0 --- /dev/null +++ b/webpack.config.d/moment.js @@ -0,0 +1,4 @@ +config.plugins.push(new webpack.ProvidePlugin({ + moment: "moment", + "window.moment": "moment" +})); -- cgit