var path = require('path') path.resolve(__dirname, '..')
1.安装koa-static yarn add koa-static 2.导入 import * as fs from 'fs'; import * as path from 'path'; import * as serve from 'koa-static'; 3.静态页面 route…
项目热更新 npm i nodemon -D "scripts": { "start": "nodemon app.js" }, es语法支持 这里需要用到如下插件: webpack & webpack-cli clean-webpack-plugin: 清除dist目录 webp…
https://blog.csdn.net/qq_40323256/article/details/102929887