16 Commits

Author SHA1 Message Date
e80ec07873 feat(webpack): add --env.stats to disable printing stats
primarily used internally by preview-cli
2022-07-13 15:25:51 -07:00
af4b7e3b33 feat: support webpack profiling (#9804)
Co-authored-by: Martin Guillon <martin.guillon@akylas.fr>
2022-03-03 10:22:28 +01:00
f00f82caa4 feat(webpack): -v and --version flags 2021-09-08 16:12:11 -07:00
3bf55b7a04 feat: handle config name
related to https://github.com/NativeScript/nativescript-cli/pull/5554
2021-08-09 15:56:32 +02:00
5309f2d0a7 fix(webpack): use async type-checking in watch mode 2021-08-03 15:41:49 +02:00
0a6f80a554 fix(webpack): don't ignore compilation errors (#9369)
* fix(webpack): Fail build in case of compilation errors.

WebPack's own documentation states that the `err` object **will not**
include compilation errors.

https://webpack.js.org/api/node/#webpack

This fix addresses compilation errors by setting the correct `process.exitCode`
looking at the result of the `stats.hasErrors()` call.

* fix(tsc): Ensure that TypeScript compilation errors are handled.

The `async` flag of the `fork-ts-checker-webpack-plugin` will (by default
in development mode) avoid reporting any errors detected by `tsc` back
to webpack:

https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options

> If `true` reports issues **after** webpack's compilation is done.
> Thanks to that it doesn't block the compilation.

The problem in this case is that any compilation error will be then
undetectable by the `WatchStatePlugin` which will happily tell the
NativeScript CLI to continue with the build process.

* fix(cli): Do not send the `compilation` message to the CLI on errors.

When the compilation fails, this patch will prevent for the `compilation`
message to be sent back to the CLI, preventing broken builds hitting the device.
2021-08-03 14:36:02 +02:00
c2297464bc fix: print errorDetails with env.verbose 2021-03-29 13:58:22 +02:00
c922e77129 style: run prettier on webpack5 files 2021-03-29 01:24:23 +02:00
b7da9d573f chore: cleanup 2021-03-26 22:58:49 +01:00
75e6009b8a chore: implement basic devServer 2021-03-26 22:16:36 +01:00
8855ca4373 chore: HMRRuntime injection (wip) 2021-03-24 17:27:35 +01:00
0e8336f1d9 chore: cleanup imports 2021-03-11 16:28:11 +01:00
02d2befc8a refactor: simplify project file lookup 2021-03-07 19:33:42 +01:00
0a1ba16436 feat: parse --env.<flags> [WIP] 2021-03-02 18:50:10 +01:00
de2297c7a9 fix: bash prefix 2021-03-01 13:01:37 -08:00
e544b4506f feat: add micro cli for initializing the config 2020-11-23 16:27:33 +01:00