You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
409 B
22 lines
409 B
8 years ago
|
const { execSync } = require('child_process')
|
||
|
const path = require('path')
|
||
|
|
||
|
let hash = execSync('git rev-parse --short HEAD').toString().trim()
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './js',
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, 'out', 'js'),
|
||
|
filename: `app.${hash}.js`
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
loader: 'babel-loader'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
devtool: 'source-map'
|
||
|
}
|