Skip to content

Instantly share code, notes, and snippets.

@AmilKey
Created June 10, 2016 11:31
Show Gist options
  • Save AmilKey/2163c94a09747bc76507b55f68fbd14f to your computer and use it in GitHub Desktop.
Save AmilKey/2163c94a09747bc76507b55f68fbd14f to your computer and use it in GitHub Desktop.
generate the shim ember.js
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