mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
23 lines
668 B
JavaScript
23 lines
668 B
JavaScript
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: []
|
||
};
|