Skip to content

npm run clean-build is broken #2318

@samuelallan72

Description

@samuelallan72

It looks like webpack-cli build no longer provides a --clean option:

$ npm run clean-build

> [email protected] clean-build
> fedx-scripts webpack --clean

Running with resolved config:
/mnt/edx-ora2/webpack.prod.config.js

[webpack-cli] Error: Unknown option '--clean'
[webpack-cli] Run 'webpack --help' to see available commands and options

And according to these lines, cleaning the dist directory is always done automatically as part of the build:

// Cleans the dist directory before each build
new CleanWebpackPlugin(),

So the clean-build script can probably be completely removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions