diff options
author | Florian Dold <florian@dold.me> | 2022-04-12 20:55:34 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-04-12 20:55:34 +0200 |
commit | f3d8b4474302a00fd923581046b0f5828a4c5976 (patch) | |
tree | 973c69498cb822580c1ad3f42798768637e9f1fb /packages/anastasis-webui/preact.config.js | |
parent | 1e92093a50962f4702339e872caa4f82af90af70 (diff) | |
download | wallet-core-f3d8b4474302a00fd923581046b0f5828a4c5976.tar.xz |
copyright headers
Diffstat (limited to 'packages/anastasis-webui/preact.config.js')
-rw-r--r-- | packages/anastasis-webui/preact.config.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/packages/anastasis-webui/preact.config.js b/packages/anastasis-webui/preact.config.js index 8d6da1911..f9a8d6cba 100644 --- a/packages/anastasis-webui/preact.config.js +++ b/packages/anastasis-webui/preact.config.js @@ -15,31 +15,31 @@ */ /** -* -* @author Sebastian Javier Marchano (sebasjm) -*/ + * + * @author Sebastian Javier Marchano (sebasjm) + */ -import { DefinePlugin } from 'webpack'; +import { DefinePlugin } from "webpack"; -import pack from './package.json'; -import * as cp from 'child_process'; +import pack from "./package.json"; +import * as cp from "child_process"; -const commitHash = cp.execSync('git rev-parse --short HEAD').toString(); +const commitHash = cp.execSync("git rev-parse --short HEAD").toString(); export default { webpack(config, env, helpers) { // add __VERSION__ to be use in the html config.plugins.push( new DefinePlugin({ - 'process.env.__VERSION__': JSON.stringify(env.isProd ? pack.version : `dev-${commitHash}`), + "process.env.__VERSION__": JSON.stringify( + env.isProd ? pack.version : `dev-${commitHash}`, + ), }), ); - const crittersWrapper = helpers.getPluginsByName(config, 'Critters') + const crittersWrapper = helpers.getPluginsByName(config, "Critters"); if (crittersWrapper && crittersWrapper.length > 0) { - const [{ index }] = crittersWrapper - config.plugins.splice(index, 1) + const [{ index }] = crittersWrapper; + config.plugins.splice(index, 1); } - - } -} - + }, +}; |