rc-tools icon indicating copy to clipboard operation
rc-tools copied to clipboard

set javascriptEnabled: true to support Javascript In Less

Open HadeAs opened this issue 5 years ago • 1 comments

modify the getWebpackCommonConfig.js file below:

let lessLoader = cssLoader.concat([
      {
        loader: 'less',
        options: {
          sourceMap: true,
          javascriptEnabled: true   // add this line to support Javascript In Less
        },
      },
    ]);

HadeAs avatar Mar 29 '19 07:03 HadeAs

at line 147 of the file

HadeAs avatar Mar 29 '19 07:03 HadeAs