I'm trying to create archive with webpack with suffix by git-revision. Could you tell me please what is good way to do it?
相关问题
- Ignore Typescript errors in Webpack-dev-server
- Webpack Encore: cannot import local dependencies
- Webpack getting started, import error
- DOMContentLoaded not firing after navigation but f
- How do I fix typescript compiler errors on css fil
相关文章
- 运行"WEBPACK_ENV=online webpack -p",如何将.scss e6文件转化
- React and typescript with webpack typing issue
- Log to node console or debug during webpack build
- Configuring electron-webpack renderer to work with
- Disable tree shaking in Webpack 4
- webpack-dev-server: how to get error line numbers
- How to import a npm package in an angular2 compone
- Displaying a static image using React, Typescript
You can combine git-rev, arciverjs and on-build-webpack plugins for these purposes
https://www.npmjs.com/package/git-rev
http://archiverjs.com/docs/
https://www.npmjs.com/package/on-build-webpack
Here is the code snippet from webpack config file which will create an archive with revision in name. For getting git revision you can use git-rev plugin or code snippet from answer of @bolelamx
You can get git revision in webpack in this way: