mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-16 13:00:01 -04:00
22 lines
524 B
JavaScript
22 lines
524 B
JavaScript
import webpack from 'webpack';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const isDevelopment = process.env.NODE_ENV !== 'production';
|
|
|
|
/**
|
|
* @type {webpack.Configuration}
|
|
*/
|
|
const config = {
|
|
mode: isDevelopment ? 'development' : 'production',
|
|
entry: fileURLToPath(new URL('./rewrite/index.js', import.meta.url)),
|
|
output: {
|
|
path: fileURLToPath(new URL('./lib/', import.meta.url)),
|
|
filename: 'uv.bundle.js',
|
|
},
|
|
performance: {
|
|
// suppress "entrypoint size limit" warning
|
|
hints: false,
|
|
},
|
|
};
|
|
|
|
export default config;
|