Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 3242341

Browse files
committed
chore: change version format
1 parent 600f760 commit 3242341

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin')
88
const HtmlWebpackPlugin = require('html-webpack-plugin')
99
const TerserPlugin = require('terser-webpack-plugin')
1010
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
11+
const semver = require('semver')
1112

1213
const ASSET_PATH = process.env.ASSET_PATH || '/'
1314

@@ -124,7 +125,9 @@ const options = {
124125
{
125126
...manifest,
126127
description: process.env.npm_package_description,
127-
version: process.env.npm_package_version,
128+
version: semver
129+
.coerce(process.env.npm_package_version)
130+
.toString(),
128131
},
129132
null,
130133
2,

0 commit comments

Comments
 (0)