mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
@@ -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([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user