I use cnpm run build test to build a vue project. But it cannot exit when it build complete, I need to manually stop it. Which will lead to stuck in a gitlab runner job when doing auto deployment.
Here is the cnpm and node version
# cnpm -v
cnpm@7.1.0 (/usr/local/lib/node_modules/cnpm/lib/parse_argv.js)
npm@6.14.15 (/usr/local/lib/node_modules/cnpm/node_modules/npm/lib/npm.js)
node@16.13.2 (/usr/local/bin/node)
npminstall@5.3.1 (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/index.js)
prefix=/usr/local
linux x64 4.19.0-6-amd64
registry=https://registry.npmmirror.com
Here is the build log
......
static/css/chunk-fe03.95232e81.css 1.55 KiB chunk-fe03 [emitted]
static/js/chunk-fe03.100bc702.js 29 KiB chunk-fe03 [emitted]
static/css/chunk-libs.52d5c712.css 231 KiB chunk-libs [emitted] chunk-libs
static/js/chunk-libs.97b4a75d.js 1.61 MiB chunk-libs [emitted] [big] chunk-libs
favicon.ico 1.12 KiB [emitted]
index.html 6.79 KiB [emitted]
Entrypoint app [big] = static/js/runtime.bd05ddc4.js static/css/chunk-libs.52d5c712.css static/js/chunk-libs.97b4a75d.js static/css/app.5a8fec5b.css static/js/app.c113cd02.js
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
static/js/chunk-333e.f4f103a9.js (291 KiB)
static/js/chunk-63b1.0c0c15d2.js (911 KiB)
static/js/chunk-libs.97b4a75d.js (1.61 MiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app (1.95 MiB)
static/js/runtime.bd05ddc4.js
static/css/chunk-libs.52d5c712.css
static/js/chunk-libs.97b4a75d.js
static/css/app.5a8fec5b.css
static/js/app.c113cd02.js
Build complete.
Tip: built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.