Created
June 10, 2016 11:31
-
-
Save AmilKey/2163c94a09747bc76507b55f68fbd14f to your computer and use it in GitHub Desktop.
generate the shim ember.js
This file contains 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
https://ember-cli.com/user-guide/#standard-non-amd-asset | |
First, generate the shim: | |
ember generate vendor-shim moment | |
Next, provide the vendor asset path: | |
app.import('vendor/shims/moment.js'); | |
Finally, use the package by adding the appropriate import statement: | |
import moment from 'moment'; | |
// ... | |
var day = moment('Dec 25, 1995'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment