# node-babel-template **Repository Path**: zjp666777/node-babel-template ## Basic Information - **Project Name**: node-babel-template - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-31 - **Last Updated**: 2024-12-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 注意 ## win7系统适合node12 版本pkg打包 ## static文件夹下会直接复制到dist下 # 运行 ## npm run build 打包 ## npm run start 打包+运行dist/index.js ## npm run serve 使用nodemon 热重载 ## npm run pkg 打包dist/index.js 成二进制exe文件 ### 修改 package.json 中下面的targets ` "pkg": { "scripts": "src/", "targets": [ "node12-win-x64" ] }, ` node12-win-x64 中的数字来修改所打包node的版本号,如18 则为node18-win-x64 ## 如需要更多babel 转换,可以去 https://babel.nodejs.cn/docs/plugins/ 查找对应插件