fix output config value

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-07-27 09:30:41 +03:00
parent a55fe9914b
commit 17f983985a
2 changed files with 25 additions and 10 deletions

BIN
bro.zip Normal file

Binary file not shown.

View File

@ -1,17 +1,32 @@
const pkg = require('./package')
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: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`
}
publicPath: isProd
? '/'
: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`,
},
plugins: [
new HtmlWebpackPlugin({}),
new webpack.DefinePlugin({
IS_PROD: process.env.NODE_ENV === 'production',
}),
],
},
/* use https://kc.admin.inno-js.ru/ to create config, navigations and features */
navigations: {
},
features: {
},
config: {
}
}
navigations: {},
features: {},
config: {},
};