You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
618 B

const base = require('./webpack.base.conf');
const webpack = require('webpack');
base.mode = 'development';
base.watch = true;
base.devtool = 'inline-source-map';
base.externals = base.externals ? base.externals : [];
base.externals.push(
function(context, request, callback) {
if(request[0] == '.' || request.indexOf('koa') == 0) {
callback();
} else {
callback(null, "require('" + request + "')");
}
}
);
base.plugins = base.plugins ? base.plugins : [];
base.plugins.push(new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development')
}));
module.exports = base;