mirror of
https://github.com/owntracks/frontend.git
synced 2024-11-15 09:18:17 -07:00
18 lines
361 B
JavaScript
18 lines
361 B
JavaScript
const fs = require("fs");
|
|
const webpack = require("webpack");
|
|
|
|
const packageJson = fs.readFileSync("./package.json");
|
|
const version = JSON.parse(packageJson).version;
|
|
|
|
module.exports = {
|
|
configureWebpack: {
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
"process.env": {
|
|
PACKAGE_VERSION: `"${version}"`,
|
|
},
|
|
}),
|
|
],
|
|
},
|
|
};
|