99f6dbcb by renchao@pashanhoo.com

Merge branch 'dev'

2 parents 44c80e10 45ce17d2
'use strict'
const path = require('path')
const Timestamp = new Date().getTime();
function resolve (dir) {
return path.join(__dirname, dir)
}
......@@ -67,6 +68,10 @@ module.exports = {
'@': resolve('src')
}
},
output: { // 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
filename: `static/js/[name].${Timestamp}.js`,
chunkFilename: `static/js/[name].${Timestamp}.js`
},
devtool: process.env.NODE_ENV === 'development' ? '#eval-source-map' : false
},
// chainWebpack通过链式编程的形式,来修改默认的webpack配置
......