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

Option to remove imported files #1

Closed
jakubpawlowicz opened this issue Jan 22, 2017 · 0 comments
Closed

Option to remove imported files #1

jakubpawlowicz opened this issue Jan 22, 2017 · 0 comments
Milestone

Comments

@jakubpawlowicz
Copy link
Collaborator

Opened by @mikkotikkanen in clean-css repo - moving it here as it'll be a CLI feature.

Note that API already exposes a list of imported files under inlinedStylesheets field in output hash.


If you are running master css file which is just split with imports, it would be nice to have r.js styled removing of the imported files

Ie. if

master.css

@import('buttons.css')
body { background: #fff; }

buttons.css

.btn { background: #bada55; }

Would then become...

master.css

.btn { background: #bada55; }
body { background: #fff; }

...with buttons.css removed.

If file is not imported anywhere, it would be just minified as usual.

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