Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a removeModules Option #29

Closed
gfranko opened this issue Feb 17, 2014 · 1 comment
Closed

Add a removeModules Option #29

gfranko opened this issue Feb 17, 2014 · 1 comment
Assignees

Comments

@gfranko
Copy link
Owner

gfranko commented Feb 17, 2014

Add a new removeModules option allows you to pass an array of module names that you would like to be removed from your source. For example, if you are building your app into one file and are using the RequireJS text! plugin, you most likely do not want the text plugin to be included in your built file, since all of your templates are already inlined in your build.

Example Showing How To Remove RequireJS Text! Plugin

amdclean.clean({
  'code': '',
  'removeModules': ['text']
});
@gfranko gfranko self-assigned this Feb 17, 2014
gfranko added a commit that referenced this issue Feb 18, 2014
@gfranko
Copy link
Owner Author

gfranko commented Feb 18, 2014

The removeModules option has been added in the 1.2.0 release.

@gfranko gfranko closed this as completed Feb 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant