Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(x-platform): change path to webpack script
I'm attempting to build the [playground](https://github.com/foyerlive/playground) project on Windows but have run into an error. Running `npm run build` in the Playground project results in: ``` D:\dev-ie\auspost-kiosk\playground\node_modules\.bin\webpack:2 basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") ^^^^^^^ SyntaxError: missing ) after argument list ``` The build fails after this error. It appears to be a common error on Windows. gotwarlost/istanbul#677 jestjs/jest#4751 There might be a few potential solutions. This blog post suggested changing how Webpack is called. https://www.programmersought.com/article/49215661254/ Quote: > The first type of packaging command is ./node_modules/.bin/webpack, > you can see that all the shell commands in the .bin directory are .cmd; > > The second type of packaging command is ./node_modules/webpack/bin/webpack, > the last webpack is actually a js file, of course it supports node, > which also reflects the flexibility and omnipotence of the js language.
- Loading branch information