Releases: tivac/modular-css
@modular-css/[email protected]
Minor Changes
-
#1040
17b6ae2
Thanks @tivac! - ## CSS coverage & warnings on unused classesAdded
dev.warn
anddev.coverage
as supported options for@modular-css/css-to-js
package, and by extension@modular-css/rollup
,@modular-css/vite
, and@modular-css/webpack
.dev.warn
will cause unknown classes requested from JS to log a warning to the console, instead of the current errors that are thrown.dev.coverage
will cause a global namedmcssCoverage
to be created which will track accesses of all exported classes per file and allow you to identify unused styles.Example of a
mcssCoverage
object{ "packages/vite/tests/specimens/shared/static-c.mcss" : { c : 0 }, "packages/vite/tests/specimens/static/a.mcss" : { a : 1 }, "packages/vite/tests/specimens/static/b.mcss" : { b : 1 }, }
Patch Changes
- Updated dependencies [
17b6ae2
]:- @modular-css/[email protected]
@modular-css/[email protected]
Minor Changes
-
#1040
17b6ae2
Thanks @tivac! - ## CSS coverage & warnings on unused classesAdded
dev.warn
anddev.coverage
as supported options for@modular-css/css-to-js
package, and by extension@modular-css/rollup
,@modular-css/vite
, and@modular-css/webpack
.dev.warn
will cause unknown classes requested from JS to log a warning to the console, instead of the current errors that are thrown.dev.coverage
will cause a global namedmcssCoverage
to be created which will track accesses of all exported classes per file and allow you to identify unused styles.Example of a
mcssCoverage
object{ "packages/vite/tests/specimens/shared/static-c.mcss" : { c : 0 }, "packages/vite/tests/specimens/static/a.mcss" : { a : 1 }, "packages/vite/tests/specimens/static/b.mcss" : { b : 1 }, }
Patch Changes
- Updated dependencies [
17b6ae2
]:- @modular-css/[email protected]
@modular-css/[email protected]
Minor Changes
-
#1040
17b6ae2
Thanks @tivac! - ## CSS coverage & warnings on unused classesAdded
dev.warn
anddev.coverage
as supported options for@modular-css/css-to-js
package, and by extension@modular-css/rollup
,@modular-css/vite
, and@modular-css/webpack
.dev.warn
will cause unknown classes requested from JS to log a warning to the console, instead of the current errors that are thrown.dev.coverage
will cause a global namedmcssCoverage
to be created which will track accesses of all exported classes per file and allow you to identify unused styles.Example of a
mcssCoverage
object{ "packages/vite/tests/specimens/shared/static-c.mcss" : { c : 0 }, "packages/vite/tests/specimens/static/a.mcss" : { a : 1 }, "packages/vite/tests/specimens/static/b.mcss" : { b : 1 }, }
Patch Changes
- Updated dependencies [
17b6ae2
]:- @modular-css/[email protected]
@modular-css/[email protected]
Minor Changes
-
#1040
17b6ae2
Thanks @tivac! - ## CSS coverage & warnings on unused classesAdded
dev.warn
anddev.coverage
as supported options for@modular-css/css-to-js
package, and by extension@modular-css/rollup
,@modular-css/vite
, and@modular-css/webpack
.dev.warn
will cause unknown classes requested from JS to log a warning to the console, instead of the current errors that are thrown.dev.coverage
will cause a global namedmcssCoverage
to be created which will track accesses of all exported classes per file and allow you to identify unused styles.Example of a
mcssCoverage
object{ "packages/vite/tests/specimens/shared/static-c.mcss" : { c : 0 }, "packages/vite/tests/specimens/static/a.mcss" : { a : 1 }, "packages/vite/tests/specimens/static/b.mcss" : { b : 1 }, }
@modular-css/[email protected]
@modular-css/[email protected]
@modular-css/[email protected]
Patch Changes
- Updated dependencies [
d9db40b
]:- @modular-css/[email protected]
- @modular-css/[email protected]
@modular-css/[email protected]
Patch Changes
- Updated dependencies [
d9db40b
]:- @modular-css/[email protected]
- @modular-css/[email protected]
@modular-css/[email protected]
Patch Changes
- Updated dependencies [
d9db40b
]:- @modular-css/[email protected]
@modular-css/[email protected]
Patch Changes
- Updated dependencies [
d9db40b
]:- @modular-css/[email protected]
- @modular-css/[email protected]