These are chat archives for less/less.js

14th
Jan 2019
dimtabu
@taburetkin
Jan 14 08:23

i wonder, does anyone use webpack + less-loader + webpack alias ?
webpack-config:

  resolve: {
    alias: {
      'common-less': path.resolve('../../common-less')
    }
  }

inside some less file in project:

@import 'common-less/mixins.less'

i can't get it to work

@import 'common-less/mixins.less';
    ^
    Can't resolve './common-less/mixins.less'

maybe someone know how to fix this?

dimtabu
@taburetkin
Jan 14 09:01
ok, in first import should begin with ~, so syntax is @import '~common-less/mixins.less
in second, alias path should point to the real file and i have a typo in path :-\