How to replace the deprecated javascriptEnabled option in less-loader with a new plugin
问题 I need to use inline js for my less files, and previously had a webpack config with something like this to enable inline js: module.exports = { ... module: { ... rules: [ ... { test: /\.less$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader' }, { loader: 'less-loader', options: { javascriptEnabled: true }, }, ], }, ], }, }; However the javascriptEnabled option has been deprecated and the replacement for this is to use the @plugin syntax and use a js plugin. However, I am a bit