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 ability to control position of injected files #6

Open
mdreizin opened this issue Sep 28, 2015 · 2 comments
Open

add ability to control position of injected files #6

mdreizin opened this issue Sep 28, 2015 · 2 comments

Comments

@mdreizin
Copy link

It would be nice if developer can control way how baggage-loader adds injected files:

  • before source (prepend) return inject + source;;
  • after source (append) return source + inject;;
@mdreizin
Copy link
Author

In some cases need to inject baggage files after the source, because these files depend on source.

{
    test: /angular-material\/modules\/js\/.*\.js$/,
    loader: 'baggage?[file].css&[file]-default-theme.css&default-theme.js&[file]-default-theme.js'
}
require('angular-material/modules/js/core/core');

default-theme.js or [file]-default-theme.js should be added after angular-material/modules/js/core/core.js

@deepsweet
Copy link
Owner

#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants