webpack-hot-server:webpack-dev-middleware + webpack-hot-middleware + express =这个

时间:2024-05-28 12:53:11
【文件属性】:

文件名称:webpack-hot-server:webpack-dev-middleware + webpack-hot-middleware + express =这个

文件大小:2KB

文件格式:ZIP

更新时间:2024-05-28 12:53:11

JavaScript

#Webpack热服务器 ##用法 var WebpackServer = require('webpack-hot-server'); new WebpackServer(webpack(webpackConfig), { publicPath: webpackConfig.output.publicPath, contentBase: './', hot: true, stats: true }).listen(3000, 'localhost', (err) => { if (err) throw new gutil.PluginError('webpack', err) console.log('[webpack-server]', 'listening on localhost:3000') })


【文件预览】:
webpack-hot-server-master
----README.md(393B)
----client.js(102B)
----.gitignore(13B)
----index.js(630B)
----package.json(455B)

网友评论