📜  options 有一个未知属性“javascriptEnabled”.这些属性是有效的:object {lessOptions?, additionalData?, sourceMap?, webpackImporter?, implementation? } - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:13.138000             🧑  作者: Mango

代码示例1
module: { rules: [{
    test: /\.less$/,
    use: [
        { loader: "style-loader" },
        { loader: "css-loader" },
        {
            loader: "less-loader",
            options: {
                lessOptions: {
                    javascriptEnabled: true,
                }
            }
        }
    ]
}]}