Socket
Socket
Sign inDemoInstall

kk-koa-framework

Package Overview
Dependencies
186
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

12

index.js

@@ -75,6 +75,10 @@ const Koa = require('koa')

* @param {webpack.Configuration} cfg
* @param {any} webpack 传入webpack
* @param {any} webpackDevMiddleware 传入webpack-dev-middleware
* @returns {Framework}
*/
enableWebpack(cfg){
this.webpack = cfg
enableWebpack(cfg,webpack,webpackDevMiddleware=null){
this.webpackCfg = cfg
this.webpack = webpack
this.webpackDevMiddleware = webpackDevMiddleware
return this

@@ -134,4 +138,4 @@ }

compileWebpack(){
if(this.webpack){
require('./src/utils/webpack')(this.app,this.webpack)
if(this.webpackCfg){
require('./src/utils/webpack')(this.app,this.webpackCfg,this.webpack,this.webpackDevMiddleware)
}

@@ -138,0 +142,0 @@ }

@@ -6,3 +6,3 @@ {

"name": "kk-koa-framework",
"version": "3.0.1",
"version": "3.0.2",
"description": "kk koa mvc webframework",

@@ -9,0 +9,0 @@ "main": "index.js",

@@ -16,6 +16,4 @@ const devMiddleware = (webpackDev, compiler, opts) => {

module.exports = (app,cfg) => {
let webpack = require('webpack')
let middleware = require('webpack-dev-middleware')
module.exports = (app,cfg,webpack,middleware) => {
let compiler = webpack(cfg)

@@ -26,3 +24,2 @@

}
let lastPercent = 0

@@ -29,0 +26,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc