bro.landing/ijl.config.js

33 lines
759 B
JavaScript
Raw Normal View History

2024-07-27 09:30:41 +03:00
const pkg = require('./package');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const isProd = process.env.NODE_ENV === 'production';
2024-07-25 22:14:20 +03:00
module.exports = {
apiPath: 'stubs/api',
2024-07-27 09:30:41 +03:00
apps: {
main: {
version: 'master',
name: 'cleanName',
},
},
2024-07-25 22:14:20 +03:00
webpackConfig: {
output: {
2024-07-27 09:30:41 +03:00
publicPath: isProd
? '/'
: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`,
},
plugins: [
new HtmlWebpackPlugin({}),
new webpack.DefinePlugin({
IS_PROD: process.env.NODE_ENV === 'production',
}),
],
2024-07-25 22:14:20 +03:00
},
/* use https://kc.admin.inno-js.ru/ to create config, navigations and features */
2024-07-27 09:30:41 +03:00
navigations: {},
features: {},
config: {},
};