rc-tools
rc-tools copied to clipboard
set javascriptEnabled: true to support Javascript In Less
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
},
},
]);
at line 147
of the file