Open devuxer opened 2 years ago
less compile use require.resolve to get package from node_modules but extension use inside less package that only can get from extension's node_modules directory,the way to @import from node_modules is using local less compile from workspace
Expected behavior
@import "antd/dist/antd.less";
automatically searches in /node_modules/antd/Actual behavior
@import "antd/dist/antd.less";
throws the following error and no css file is generated on save:Details
/src/front-end/styles/app.less
.relativeUrls
both on and off/antd/dist/antd.less
~antd/dist/antd.less
~/antd/dist/antd.less
/node_modules/antd/dist/antd.less
npm://antd/dist/antd.less
lessc --js src/front-end/styles/app.less src/front-end/styles/app.css
, it worked as expected (no errors and CSS file gets created with all the imported styles)