think-webpack-dev-middleware:适用于ThinkJS的webpack开发中间件

时间:2024-06-16 13:08:16
【文件属性】:

文件名称:think-webpack-dev-middleware:适用于ThinkJS的webpack开发中间件

文件大小:14KB

文件格式:ZIP

更新时间:2024-06-16 13:08:16

middleware webpack webpack2 thinkjs JavaScript

think-webpack-dev-中间件 适用于ThinkJS的webpack开发中间件 安装 $ npm install think-webpack-dev-middleware 如何在ThinkJS 2.x中使用 在src/common/config/hook.js添加钩子 export default { resource: ['webpack-dev'] } 在src/common/bootstrap/middleware.js添加钩子src/common/bootstrap/middleware.js import webpackDevMiddleware from 'think-webpack-dev-middleware'; import webpack from 'webpack'; import config from '../../../webpack.c


【文件预览】:
think-webpack-dev-middleware-master
----.gitignore(578B)
----package.json(681B)
----LICENSE(34KB)
----index.js(355B)
----README.md(856B)

网友评论