bro.landing/ijl.config.js
Primakov Alexandr Alexandrovich 054add7825
All checks were successful
platform/bro-js/bro.landing/pipeline/head This commit looks good
Update webpack publicPath to use production CDN URL for asset delivery.
2025-10-24 12:28:19 +03:00

34 lines
800 B
JavaScript

/* eslint-disable @typescript-eslint/no-require-imports */
/* eslint-disable no-undef */
const pkg = require('./package');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const isProd = process.env.NODE_ENV === 'production';
module.exports = {
apiPath: 'stubs/api',
apps: {
main: {
version: 'master',
name: 'cleanName',
},
},
webpackConfig: {
output: {
publicPath: isProd
? 'https://static.brojs.ru/landing/main/'
: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`,
},
plugins: [
new HtmlWebpackPlugin({}),
new webpack.DefinePlugin({
IS_PROD: process.env.NODE_ENV === 'production',
}),
],
},
navigations: {},
features: {},
config: {},
};