npm.devtool.tech
👏 You can access less-plugin-npm-import package with using lessPluginNpmImport variable in browser devtools!
npm import plugin for less.js

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

NPM version Dependencies devDependency Status optionalDependency Status

less-plugin-npm-import

Adds the ability for less to import from npm packages

lessc usage

Install with npm

npm install -g less-plugin-npm-import

In less file:

@import "npm://packagename/path/to/file.less";

css/less extensions not necessary

Options:
prefix - default: npm://

Command line usage

lessc --npm-import file.less file.css lessc --npm-import="prefix=~" file.less file.css

Programmatic usage

var NpmImportPlugin = require("less-plugin-npm-import"), options = { plugins: [new NpmImportPlugin({prefix: '~'})] }; less.render(css, options) .then(...

Browser usage

Browser usage is not supported.

Testing

run the tests by running node test You require the dev dependencies installed (which includes less)

🔎Explore Package🔎CDN Script

Score

Popularity22/100
Quality81/100
Maintenance17/100