Skip to content

Commit

Permalink
feat: remove momentjs
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Apr 15, 2019
1 parent 7aae40a commit 52918bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ module.exports = {
},
filenames: {
app: ({ isDev }) => isDev ? '[name].js' : 'hare.[chunkhash:12].js',
chunk: ({ isDev }) => isDev ? '[name].js' : 'hare.chunk.[chunkhash:12].js',
chunk: ({ isDev }) => isDev ? '[name].js' : 'hare.[chunkhash:12].js',
css: ({ isDev }) => isDev ? '[name].css' : 'hare.[contenthash:12].css'
},
plugins: [
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /zh|en|fr/)
]
}
},
/*
** Customize the Progress Bar
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"koa-router": "^7.4.0",
"koa-session": "^5.8.1",
"mkdirp": "^0.5.1",
"moment": "^2.22.0",
"negotiator": "^0.6.1",
"normalize.css": "^8.0.0",
"nuxt": "^2.6.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7141,7 +7141,7 @@ modify-values@^1.0.0:
resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022"
integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==

moment@^2.10.2, moment@^2.10.6, moment@^2.22.0:
moment@^2.10.2, moment@^2.10.6:
version "2.24.0"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==
Expand Down

0 comments on commit 52918bd

Please sign in to comment.