Skip to content

configuration.plugins[5] misses the property 'apply'. Should be: function #128

@Samele-QoQ

Description

@Samele-QoQ

Image
在原生webpack配置中使用,使用这样的配置

const CracoLessPlugin = require('craco-less');
module.export = {
  // ...
 plugins: [
      {
            plugin: CracoLessPlugin,
            options: {
                lessLoaderOptions: {
                    lessOptions: {
                        javascriptEnabled: true,
                    },
                },
            },
        }
]
  // ...
}

会报图片上的异常

这边在外部包了一层箭头函数后没报错了,问一下有没有函数式写法

在官网上看到的都是基于@craco/craco的配置,基本没有看到基于原生webpack的配置

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions