Files
url_tracker_tool/node_modules/cose-base/webpack.config.js
Andrei 58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00

43 lines
992 B
JavaScript

const path = require('path');
const pkg = require('./package.json');
const camelcase = require('camelcase');
const process = require('process');
const webpack = require('webpack');
const env = process.env;
const NODE_ENV = env.NODE_ENV;
const MIN = env.MIN;
const PROD = NODE_ENV === 'production';
let config = {
devtool: PROD ? false : 'inline-source-map',
entry: './index.js',
output: {
path: path.join( __dirname ),
filename: 'cose-base.js',
library: camelcase( pkg.name ),
libraryTarget: 'umd'
},
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, use: 'babel-loader' }
]
},
externals: PROD ? {
'layout-base': {
commonjs2: 'layout-base',
commonjs: 'layout-base',
amd: 'layout-base',
root: 'layoutBase'
}
} : {},
plugins: MIN ? [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
drop_console: false,
}
})
] : []
};
module.exports = config;