config.js
根
/
build /
config.js
module.exports = config = {
port: 8090,
//打包目标目录
buildPath: './dist/',
//拷贝目录及文件
copy: [
{
//源目录/文件
from: './html',
//目标目录/文件
to: './dist/html',
ignore: ['.*']
}
],
webpack: {
devServer: {
sockHost: '192.168.88.88'
}
}
};