Skip to content

Commit

Permalink
Remove AMD info from plugin generator readme
Browse files Browse the repository at this point in the history
Closes #222
  • Loading branch information
matthewp committed Apr 13, 2017
1 parent cd5a11b commit da399dc
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions plugin/templates/README.md
Expand Up @@ -23,28 +23,6 @@ needed to create a template that uses `<%= name %>`:
var plugin = require("<%= name %>");
```

## AMD use

Configure the `can` and `jquery` paths and the `<%= name %>` package:

```html
<script src="require.js"></script>
<script>
require.config({
paths: {
"jquery": "node_modules/jquery/dist/jquery",
"can": "node_modules/canjs/dist/amd/can"
},
packages: [{
name: '<%= name %>',
location: 'node_modules/<%= name %>/dist/amd',
main: 'lib/<%= name %>'
}]
});
require(["main-amd"], function(){});
</script>
```

### Standalone use

Load the `global` version of the plugin:
Expand Down

0 comments on commit da399dc

Please sign in to comment.