Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Why is the output result empty? #28

Open
devenliu opened this issue Jul 24, 2020 · 0 comments
Open

Why is the output result empty? #28

devenliu opened this issue Jul 24, 2020 · 0 comments

Comments

@devenliu
Copy link

input default.less

@import '~antd/lib/style/themes/default.less';
const less = require('less');
const NpmImportPlugin = require('less-plugin-npm-import');
const options = {
  plugins: [ 
    new NpmImportPlugin({ prefix: '~' }),
  ]
}
less.render(content, options).then(result => result.css);

output default.css

/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant