Browse Source

chore: support pre versions

Gerald 8 years ago
parent
commit
2d56c7d3cf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gulpfile.js

+ 1 - 1
gulpfile.js

@@ -57,7 +57,7 @@ gulp.task('js-prd', () => webpack(webpackConfig, webpackCallback));
 gulp.task('manifest', () => (
   gulp.src(paths.manifest, {base: 'src'})
   .pipe(json(data => {
-    data.version = pkg.version;
+    data.version = pkg.version.replace(/-[^.]*/, '');
     return data;
   }))
   .pipe(gulp.dest('dist'))