yapi/ykit.js
2017-07-05 19:31:58 +08:00

23 lines
668 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.

module.exports = {
plugins: ['react', 'es6', 'antd'],
devtool: 'cheap-source-map',
config: {
exports: [
'./scripts/index.js',
'./styles/index.css'
],
modifyWebpackConfig: function(baseConfig) {
// edit ykit's Webpack configs
baseConfig.watch = true;
console.log(baseConfig)
return baseConfig;
}
},
server: {
hot: true, // true/false默认 false效果相当于 ykit server --hot
overlay: true // true/false默认 false开启后可在当前打开的页面提示打包错误
},
hooks: {},
commands: []
};