5.5.4 • Published 2 years ago
karma-typescript-postcss-transform v5.5.4
karma-typescript-postcss-transform
Karma-Typescript :heart: PostCSS
This plugin is a generic PostCSS runner, which transforms CSS with JavaScript on the fly when running tests with karma-typescript.
Installation
$ npm install --save-dev karma-typescript-postcss-transform
Configuration
In the karma-typescript
section of karma.conf.js
:
karmaTypescriptConfig: {
bundlerOptions: {
transforms: [
require("karma-typescript-postcss-transform")([require("some-plugin")])
]
}
}
Options
Custom options can be passed to the runner in the first argument when calling the plugin:
- An array of PostCSS plugins
- PostCSS options. Optional, but the properties
to
andfrom
are always set to the filename of the CSS file automatically. - A
RegExp
object to filter which files should be processed. Optional, defaults to/\.css$/
.
An example using the plugin autoprefixer
with inline sourcemaps and a RegExp
filter:
karmaTypescriptConfig: {
bundlerOptions: {
transforms: [
require("karma-typescript-postcss-transform")(
[require("autoprefixer")], { map: { inline: true } }, /\.css$/
)
]
}
}
Licensing
This software is licensed with the MIT license.
© 2016-2021 Erik Barke, Monounity
5.5.4
2 years ago
5.5.3
3 years ago
5.5.2
4 years ago
5.5.1
4 years ago
5.5.0
4 years ago
5.4.0
4 years ago
5.3.0
4 years ago
5.2.0
5 years ago
5.1.0
5 years ago
5.0.3
5 years ago
5.0.2
5 years ago
5.0.1
5 years ago
5.0.0
5 years ago
5.0.0-beta.2
5 years ago
5.0.0-beta.3
5 years ago
5.0.0-beta.1
5 years ago
5.0.0-beta.0
6 years ago
4.1.1
6 years ago
4.1.0
6 years ago
4.0.0
6 years ago
4.0.0-beta.3
6 years ago
4.0.0-beta.2
7 years ago
4.0.0-beta.1
7 years ago
1.0.0
8 years ago