Releases: tivac/modular-css
@modular-css/webpack@29.1.1
Patch Changes
- Updated dependencies [
21ac173
]:- @modular-css/css-to-js@29.1.1
@modular-css/vite@30.2.1
Patch Changes
- Updated dependencies [
21ac173
]:- @modular-css/css-to-js@29.1.1
@modular-css/rollup@29.1.1
Patch Changes
- Updated dependencies [
21ac173
]:- @modular-css/css-to-js@29.1.1
@modular-css/css-to-js@29.1.1
@modular-css/webpack@29.1.0
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/css-to-js@29.1.0
@modular-css/vite@30.2.0
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/css-to-js@29.1.0
@modular-css/rollup@29.1.0
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/css-to-js@29.1.0
@modular-css/css-to-js@29.1.0
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 }, }