Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

[feature] Exclude sections from being mangled #14

Open
gwillz opened this issue Jan 9, 2019 · 0 comments
Open

[feature] Exclude sections from being mangled #14

gwillz opened this issue Jan 9, 2019 · 0 comments

Comments

@gwillz
Copy link

gwillz commented Jan 9, 2019

This could be using comments like:

/* @no-mangle */
.protected-rules-here {
  ...
}
.another-protected .rule {
  ...
}
/* @free-mangle */

And also import rules:

@import "draft-js"; /* @no-mangle */

The naming convention could be whatever. There's plenty of good examples, particularly in linters.

For me this is a nice-to-have at the moment, but could be a requirement for bigger projects. So I might submit a PR eventually.

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

No branches or pull requests

1 participant