@kvinc/martin-webpack-dev-server
v0.0.3
Published
依据@kvinc/martin-webpack制作的服务器
Downloads
6
Readme
mwebpack-dev-server
基于mwebpack构建的node服务器
安装
npm i @kvinc/acorn-webpack-dev-server -g
使用
mwebpack-dev-server --config xxx
mwebpack.config.js
module.exports = {
entry: xxx,
output: {
path: path.resolve(__dirname, './dist/js'),
filename: '[name].[hash].js'
},
resolveLoaders: './webpack/loaders'
}
插件
如果你想直接打包出html, 那么在根目录下创建一个模板index.html, 并且仿照MwebpackHTMlPlugin, 最后在mwebpack.config.js里使用
...,
plugins: [
new MwebpackHTMlPlugin()
]
...