Skip to content

Commit

Permalink
docs(config) add cross-env to TS_NODE_PROJECT build script (#2761)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneHlushko authored and montogeek committed Jan 22, 2019
1 parent dfe9c47 commit ce1d3c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content/configuration/configuration-languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ __package.json__
```json
{
"scripts": {
"build": "TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack"
"build": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack"
}
}
```

W> We had been getting reports that `TS_NODE_PROJECT` might not work with `"TS_NODE_PROJECT" unrecognized command` error. Therefore running it with `cross-env` seems to fix the issue, for more info [see this issue](https://github.com/webpack/webpack.js.org/issues/2733).


## CoffeeScript

Expand Down

0 comments on commit ce1d3c9

Please sign in to comment.