@autobest-ui/scripts 3.0.0-alpha.8 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common/version.js CHANGED
@@ -8,7 +8,8 @@ function getCurrentVersion() {
8
8
  const month = date.getMonth() + 1;
9
9
  const day = date.getDate();
10
10
  const hour = date.getHours();
11
- return `${year}${getCompleteVal(month)}${getCompleteVal(day)}${getCompleteVal(hour)}`;
11
+ const minutes = date.getMinutes();
12
+ return `${year}${getCompleteVal(month)}${getCompleteVal(day)}${getCompleteVal(hour)}${getCompleteVal(minutes)}`;
12
13
  }
13
14
 
14
15
  /**
@@ -213,6 +213,7 @@ module.exports = (appConfig, extendEnv, { isProd, isServer, isHotServer }) => {
213
213
  extensions: ['.tsx', '.ts', '.js', 'scss', 'css']
214
214
  },
215
215
  plugins: [
216
+ new webpack.DefinePlugin(extendEnv.stringified),
216
217
  new ProgressBarPlugin({
217
218
  // eslint-disable-next-line no-useless-concat
218
219
  format: 'build [:bar] ' + ':percent' + ' (:elapsed seconds)',
@@ -242,10 +243,6 @@ module.exports = (appConfig, extendEnv, { isProd, isServer, isHotServer }) => {
242
243
  );
243
244
  }
244
245
 
245
- if (!isServer) {
246
- result.plugins.push(new webpack.DefinePlugin(extendEnv.stringified));
247
- }
248
-
249
246
  if (isProd && !isServer) {
250
247
  result.optimization = {
251
248
  chunkIds: 'named',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobest-ui/scripts",
3
- "version": "3.0.0-alpha.8",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "description": "utils for project tools",
6
6
  "bin": {
@@ -100,5 +100,5 @@
100
100
  "webpack-merge": "5.8.0",
101
101
  "webpack-node-externals": "3.0.0"
102
102
  },
103
- "gitHead": "e55e2bb55a097cdbb5acbb133014f542a6f03e92"
103
+ "gitHead": "fb75bd54150164e95c075eef437badba8dcd0728"
104
104
  }