yapi/ykit.js
2017-07-10 19:50:11 +08:00

25 lines
614 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var path = require('path');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
plugins: ['qunar', 'antd'],
devtool: 'cheap-source-map',
config: {
exports: [
'./index.js'
],
modifyWebpackConfig: function(baseConfig) {
baseConfig.context = path.resolve(__dirname, "client");
return baseConfig;
}
},
server: {
// true/false默认 false效果相当于 ykit server --hot
hot: true,
// true/false默认 false开启后可在当前打开的页面提示打包错误
overlay: true
},
hooks: {},
commands: []
};