Created
December 2, 2020 08:54
-
-
Save ThaddeusJiang/784e76cbde5d979987def51ed3e594df to your computer and use it in GitHub Desktop.
Nuxt 使用 Chart.js,但是不想引入 moment.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| build: { | |
| extend(config, ctx) { | |
| // add externals | |
| config.externals = { | |
| moment: 'moment', | |
| } | |
| }, | |
| }, | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
before

after
