I have setup a
resolve.root = "app/assets/.
In some other nested folders i have a
someScript.js file containing:
require('common.less'); //this resolves with resolve.root. require('./someStyles.less');
Instead of requiring the
common.less inside the
someScript.js I really want to
@import it inside the
@import('common.less') color: @primaryColor //from common.less. Not possible without @import
This gives me the “Module build failed: Error: Cannot resolve file or directory” error.