0.0.8 • Published 4 months ago
get-version-plugin v0.0.8
get-version-plugin
webpack plugin for getting project version when webpack finished build
use
npm install get-version-plugin -D
webpack.config.js
const GetVersionPlugin = require("get-version-plugin");
plugins: [
new GetVersionPlugin({
path: path.join(__dirname, "./public/version.json"),
}),
]