mirror of
https://git.eta.st/eta/rsp6-decoder.git
synced 2024-11-24 10:35:37 +00:00
23 lines
553 B
JavaScript
23 lines
553 B
JavaScript
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
let commitHash = require('child_process')
|
|
.execSync('git rev-parse --short HEAD')
|
|
.toString()
|
|
.trim();
|
|
const path = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: "./bootstrap.js",
|
|
output: {
|
|
path: path.resolve(__dirname, "dist"),
|
|
filename: "bootstrap.js",
|
|
},
|
|
mode: "development",
|
|
plugins: [
|
|
new CopyWebpackPlugin(['index.html', 'govuk.css']),
|
|
new webpack.DefinePlugin({
|
|
__COMMIT_HASH__: JSON.stringify(commitHash)
|
|
})
|
|
],
|
|
};
|