Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Webpack guide package.json build script uses rm, fails on Windows #1392

Closed
@mattdistefano

Description

@mattdistefano

Pretty sure this will fail on most versions of Windows, due to the absence of rm on that platform:

"build": "rm -rf dist && webpack --config config/webpack.prod.js --progress --profile --bail"

Probably should use something like rimraf or implement clean-webpack-plugin inside the webpack config. I tend to prefer the latter, since it keeps the whole build cycle within webpack.

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