2.1.14 • Published 1 year ago
@amisa/style-plugin v2.1.14
transform css file to style elemenet tag
The Vite library Mode plugin, which supports single file transform (the default mode for Vite)
import { defineConfig } from 'vite';
import { AmisaCssTransformStylePlugin } from 'amisa-csstostyle-plugin';
export default defineConfig({
.
.
.
plugins: [
AmisaCssTransformStylePlugin()
],
.
.
.
})
Usage Examples
export class SomeJavaScriptClass {
public style: HTMLStyleElement
constructor() {
this.style = document.createAmisaStyleElement('Main.css')
document.appendChild(this.#style)
}
}
export class SomeJavaScriptClass {
style
constructor() {
this.style = document.createAmisaStyleElement('Main.css')
document.appendChild(this.style)
}
}
all css styles in 'Main.css' file
send me email : amisa@ieee.org
2.1.14
1 year ago
2.1.12
1 year ago
2.1.13
1 year ago
2.1.10
1 year ago
2.1.11
1 year ago
2.1.6
1 year ago
2.1.5
1 year ago
2.1.7
1 year ago
2.1.9
1 year ago
1.1.1
1 year ago
1.1.5
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.2.1
1 year ago
1.1.2
1 year ago
2.1.2
1 year ago
2.1.4
1 year ago
2.1.3
1 year ago
0.0.17
1 year ago
0.0.18
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.13
1 year ago
0.0.14
1 year ago
0.0.15
1 year ago
0.0.16
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago