@shibinhua-water/cli
v0.0.31
Published
smart fe cli
Downloads
342
Readme
water-cli
前端H5/PC项目脚手架
water.config.js
// 运行配置
// options 自定义配置
// eg: water serve . env=prod name=test ===> options = {appEnv: 'prod', mode: 'production'}
module.exports = (options = {}) => {
return {
// 内部数据会被编译至process.env中
constant: {
},
// head头部中注入script模板
headTemplateScripts: [],
// body尾部中注入script模板
bodyTemplateScripts: [],
// 插件配置合并至webpack
plugins: [
'pluginname'
]
}
}