@jeebey/vue-version
v1.1.1
Published
构建同时生成版本号
Downloads
10
Readme
介绍
构建同时生成版本号
安装教程
npm i @jeebey/vue-version
使用说明
1. vue
vue.config.js
const WebpackComplierVersionPlugin = require("@jeebey/vue-version");
module.exports = {
css: {
loaderOptions: {
less: {
javascriptEnabled: true
}
}
},
configureWebpack: {
plugins: [
new WebpackComplierVersionPlugin({
path: "./version.json"
})
]
}
};
2. nuxt
nuxt.config.js
import WebpackComplierVersionPlugin from '@jeebey/vue-version'
export default {
build: {
plugins: [
new WebpackComplierVersionPlugin({
path: './assets/version.json',
format: 'YYYYMMDDHHmm',
value1: '支持自定义键1'
})
]
}
}