npm i lyxcool-webpack -s
src(插件源码)
lib (插件编译之后代码)
实时编译 npm run build
const { webpackConfig } = require('lyxcool-webpack')
module.exports = webpackConfig
https://github.com/lyxverycool/react-csr-templete
目前只支持react 客户端渲染
可以自定义webpack的配置
if (process.env.DEV_SERVER) { webpackConfig.devServer.port = 12306 .... }