// main.ts
console.log(__VERSION__);
Does have such a similar function / tslint:disable /
// main.ts
console.log(__VERSION__);
Does have such a similar function / tslint:disable /
. Referring to the source code of vue, you can replace the string through rollup-plugin-replace , and directly represent the place marked as the version with a string (such as: console.log ('_ VERSION__')). Write a paragraph in rollup.config.js to get the logic of the version field in package.json. Ok for replacement
Previous: How to properly deploy the Vue history mode project in the root directory by Nginx
Next: The problem of using cgo to develop chaincode for fabric