ultraviolet/webpack.config.js
2022-09-12 20:10:21 -04:00

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;