You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vargetWebpackOpts=require('spm-webpack').build.getWebpackOpts;varwebpack=require('spm-webpack').webpack;varmiddleware=require('spm-webpack-server/middleware');varapp=require('koa'();// 1. 获取 spm-webpack 处理过的参数getWebpackOpts({cwd:cwd},function(err,opts){// do something with opts// 2. 获取 compiler 示例varcompiler=webpack(opts);// do something with compiler// 3. 添加中间件到 koaapp.use(middleware(compiler,opts);});
@jsw0528
The text was updated successfully, but these errors were encountered: