importless

Find stylesheet files (css and less) and strip away the @imported ones

Usage no npm install needed!

<script type="module">
  import importless from 'https://cdn.skypack.dev/importless';
</script>

README

importless

Get .less/.css files from directory without @imports for automatic stylesheet dependency tracking.

Getting Started

Install the module with: npm install less-detect

var importless = require('importless'),
    files = importless.detectDependencies();

License

Copyright (c) 2012 David Pfahler
Licensed under the MIT license.