@Import of less files into a limited scope
问题 I want to import all styles from another less file, but into a limited scope. I'm trying this: "my-site.less" .wrapper-class { @import "path/to/styles.less"; } But this doesn't work at all. I'm using the browser-based less.js option, and I can see the GET statement that is run when it actually does the import. But the resultant CSS does not contain any of the styles from the other sheet. If I do it like this, it works: .wrapper-class { /* ... */ } @import "path/to/styles.less"; But this