forked from github/dataease
feat: js文件添加版本号
This commit is contained in:
parent
1e7d6a27d2
commit
a9ffbdd74b
@ -2,6 +2,8 @@
|
||||
const path = require('path')
|
||||
const defaultSettings = require('./src/settings.js')
|
||||
|
||||
const pkg = require('./package.json')
|
||||
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||
// const CompressionPlugin = require('compression-webpack-plugin')
|
||||
const webpack = require('webpack')
|
||||
@ -48,6 +50,11 @@ module.exports = {
|
||||
'@': resolve('src')
|
||||
}
|
||||
},
|
||||
output: {
|
||||
filename: `js/[name].[contenthash:8].${pkg.version}.js`,
|
||||
publicPath: '/',
|
||||
chunkFilename: `js/[name].[contenthash:8].${pkg.version}.js`
|
||||
},
|
||||
plugins: [
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user