xiaofuzi / rollup-plugin-less

a less rollup plugin
22 stars 24 forks source link

declare a less file as external? #30

Open aminya opened 4 years ago

aminya commented 4 years ago

I want to declare a less file as external. Is there a way to do this?

@import "ui-variables";

When I use external of rollup it does not help:

        // loaded externally
        external: [
            "ui-variables"
        ],
        plugins: [
            less({
                output: "dist/styles.css",
                exclude: ["ui-variables.less"]
            }),
        ],