mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-16 13:00:01 -04:00
add more steps, fix grammar, show version
This commit is contained in:
parent
5119555f3f
commit
54f9b43995
2 changed files with 34 additions and 9 deletions
|
@ -2,6 +2,12 @@ import { fileURLToPath } from 'url';
|
|||
import ESLintPlugin from 'eslint-webpack-plugin';
|
||||
import TerserPlugin from 'terser-webpack-plugin';
|
||||
import CopyPlugin from 'copy-webpack-plugin';
|
||||
import webpack from 'webpack';
|
||||
import { readFile } from 'fs/promises';
|
||||
|
||||
// read version from package.json
|
||||
const pk = JSON.parse(await readFile(new URL('package.json', import.meta.url)));
|
||||
process.env.ULTRAVIOLET_VERSION = pk.version;
|
||||
|
||||
const isDevelopment = process.env.NODE_ENV !== 'production';
|
||||
|
||||
|
@ -67,6 +73,7 @@ const config = {
|
|||
},
|
||||
],
|
||||
}),
|
||||
new webpack.EnvironmentPlugin('ULTRAVIOLET_VERSION'),
|
||||
],
|
||||
performance: {
|
||||
// suppress "entrypoint size limit" warning
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue