xeokit / xeokit-convert

Convert various AEC model formats for efficient viewing in the browser with xeokit.
https://xeokit.github.io/xeokit-convert/docs/
Other
52 stars 54 forks source link

[webpack-cli] Error: Unknown option '--progress;' during build on Windows #164

Closed paireks closed 4 months ago

paireks commented 4 months ago

I cannot build a project on Windows 10 (WebStorm IDE), after: npm update and later npm run build the error is: 2024-07-18_00h05_39

When I remove some semicolons I recieve: 2024-07-18_00h17_21

DhivinX commented 4 months ago

Change in package.json

From:

webpack --mode=production --node-env=production --progress; rollup --config rollup.config.dist.js; rollup --config rollup.config.convert2xkt.js; rm -Rf ./docs/*; ./node_modules/.bin/esdoc

To:

webpack --mode=production --node-env=production --progress && rollup --config rollup.config.dist.js && rollup --config rollup.config.convert2xkt.js && rm -Rf ./docs/* && ./node_modules/.bin/esdoc

Problem is with ; and && on windows semicolon don't work as commands separator.

And also you have to change rm command to for e.g. rimraf because in Windows there is different command for removing dirs.

https://www.npmjs.com/package/rimraf Works both in Linux and Windows.