tst-import-less

TypeScript transformer rewriting .less imports to .css imports

Usage no npm install needed!

<script type="module">
  import tstImportLess from 'https://cdn.skypack.dev/tst-import-less';
</script>

README

TypeScript Transformer Plugin

Transformer transpiling extensions of imported styles from less to css. Eg. import "./someStyleFile.less" to import "./someStyleFile.css"

This transformer is compatible with ttypescript. Add transformer to tsconfig.json

{
  "compilerOptions": {
    // ...
    "plugins": [
      { "transform": "tst-import-less", "after": false }
    ]
  }
}